cremalink.local_server_app.api module

This module defines the FastAPI application for the local proxy server. It creates all the API endpoints, manages application state, and handles the startup and shutdown of background services.

cremalink.local_server_app.api.create_app(settings: ServerSettings | None = None, device_adapter: DeviceAdapter | None = None, logger=None) FastAPI[source]

Application factory for the FastAPI server.

Initializes all components (state, settings, adapter, jobs) and wires up the API routes, startup/shutdown events, and dependencies.

Returns:

A configured FastAPI application instance.