tilie_server.routers.health#

The server health route.

tilie_server.routers.health.timetoshare_version()[source]#

The version of the timetoshare package the server imports.

A TimeToShare version is the version of the schema it reads and writes, which the package states as SCHEMA_VERSION; the installed metadata of an editable install keeps the version it was installed at, so the package itself is asked. None when timetoshare cannot be imported: the server starts without it (timetoalign requires it, the server does not).

Return type:

str | None

tilie_server.routers.health.health(request)[source]#

Report the server’s version, the installed timetoalign’s, the imported timetoshare’s (None without one), and whether the server serves the file routes (files).

Parameters:

request (Request)

Return type:

dict[str, str | bool | None]