app.main
FastAPI application: starts telemetry ingest (NDTP listener + dataset replay) and serves the API.
Run with exactly one worker. The NDTP listener and all in-memory state live in this process; a second worker would try to bind the NDTP port again and hold its own copy of the state:
uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 1 # from backend/
Swagger UI at /docs, OpenAPI schema at /openapi.json.
Functions
|
- app.main.create_app(settings: Settings | None = None) fastapi.FastAPI[исходный код]