rasenmaeher_api.web.application

Main API entrypoint

Module Contents

Functions

app_lifespan(app)

Handle lifespan management things, like mTLS client init

get_app_no_init()

Return the app without logging etc inits

get_app()

Returns the FastAPI application.

report_to_kraftwerk()

Call the KRAFTWERK announce URL if configured

Attributes

LOGGER

LOGGER[source]
async app_lifespan(app)[source]

Handle lifespan management things, like mTLS client init

Parameters:

app (fastapi.FastAPI)

Return type:

AsyncGenerator[None, None]

get_app_no_init()[source]

Return the app without logging etc inits

Return type:

fastapi.FastAPI

get_app()[source]

Returns the FastAPI application.

Return type:

fastapi.FastAPI

async report_to_kraftwerk()[source]

Call the KRAFTWERK announce URL if configured

Return type:

None