Production-grade FastAPI template built around dependency injection and zero global state. A composition root wires clients, services, and loggers so tests inject dependencies instead of monkeypatching; Cursor rules keep AI edits copying this architecture. Layered import DAG, Testcontainers, Prometheus, and Kubernetes probes included.
python docker kubernetes redis template sqlalchemy backend rest-api dependency-injection postgresql prometheus pytest asyncio alembic python-template asgi test-containers uv pydantic fastapi
-
Updated
Oct 5, 2026 - Python