Technical Documentation

Core

Submodules

app.gunicorn_conf module

app.main module

app.main.custom_openapi()[source]

Customizes the OpenAPI schema for the FastAPI application.

Returns:

The customized OpenAPI schema.

Return type:

dict

app.main.get_git_commit_hash() str[source]

Returns the current git commit hash, or “unknown” if not available.

Returns:

The current git commit hash, or “unknown” if not available.

Return type:

str

app.main.get_project_data()[source]

Retrieves project data from the pyproject.toml file.

Returns:

Project data from the toml file.

Return type:

dict

app.main.get_swagger_oauth_config() dict[source]

Builds Swagger UI OAuth init configuration from environment-based settings.

Returns:

Swagger OAuth init configuration.

Return type:

dict

app.main.lifespan(app: FastAPI)[source]
app.main.run_migrations()[source]

Run alembic upgrade head on startup.

Creates all tables if the DB is fresh, or upgrades to the latest migration if the DB is behind. Safe to call multiple times (idempotent).

Module contents