lean_server.app package¶
Submodules¶
lean_server.app.args module¶
This module defines the command-line argument parser for the Lean server.
lean_server.app.db module¶
This module defines the database API endpoints for the FastAPI application.
lean_server.app.lifespan module¶
This module defines the lifespan manager for the FastAPI application.
- lean_server.app.lifespan.get_lifespan(*, config: Config)[source]¶
Returns an asynchronous context manager for the application’s lifespan.
This function sets up resources on startup and cleans them up on shutdown. It initializes the database, proof manager, and other application state.
- Parameters:
config – The application configuration.
- Returns:
An async context manager function.
lean_server.app.prove module¶
This module defines the proof-related API endpoints for the FastAPI application.
lean_server.app.serve module¶
This module is the main entry point for launching the Lean server.
- lean_server.app.serve.launch(*, config: Config) FastAPI[source]¶
Creates and configures the FastAPI application.
This function initializes the FastAPI app, sets up the lifespan manager, and mounts the API routers.
- Parameters:
config – The application configuration.
- Returns:
The configured FastAPI application instance.