mainframe.dependencies

Functions

get_pypi_client(→ mainframe.pypi.PyPIClient)

get_httpx_client(→ httpx.Client)

get_rules(→ mainframe.rules.Rules)

get_queue_monitor(→ mainframe.queue_monitor.QueueMonitor)

Return the process-local cached queue monitor.

get_performance_monitor(...)

Return the process-local cached performance monitor.

validate_token(...)

Module Contents

mainframe.dependencies.get_pypi_client() mainframe.pypi.PyPIClient[source]
mainframe.dependencies.get_httpx_client(request: fastapi.Request) httpx.Client[source]
mainframe.dependencies.get_rules(request: fastapi.Request) mainframe.rules.Rules[source]
mainframe.dependencies.get_queue_monitor(request: fastapi.Request) mainframe.queue_monitor.QueueMonitor[source]

Return the process-local cached queue monitor.

mainframe.dependencies.get_performance_monitor(request: fastapi.Request) mainframe.performance_monitor.PerformanceMonitor[source]

Return the process-local cached performance monitor.

mainframe.dependencies.validate_token(token: Annotated[str, Depends(get_access_token)]) mainframe.json_web_token.AuthenticationData[source]