server.web.api

Attributes

log

Functions

app_lifespan(→ AsyncIterator[None])

Manage combined lifespan for all application resources.

get_app(→ fastapi.FastAPI)

Get a FastAPI app based on the config. If no config is provided, defaults are used.

Module Contents

server.web.api.log
async server.web.api.app_lifespan(app: fastapi.FastAPI) AsyncIterator[None]

Manage combined lifespan for all application resources.

Manages: - Database engine lifecycle (creation on startup, disposal on shutdown) - OTLP graceful shutdown

server.web.api.get_app(versions: List[str] | None = None) fastapi.FastAPI

Get a FastAPI app based on the config. If no config is provided, defaults are used.

Parameters:

versions – The versions of the API to include.