Files
fastapi-conventions/comparison/fastapi-vs-python.md
T
2026-06-01 21:42:05 +00:00

431 B

FastAPI vs Python

Use this to capture places where FastAPI/Starlette conventions deliberately differ from broader Python guidance.

Examples to watch for:

  • DI through callables and annotations instead of explicit constructor wiring
  • framework-facing Pydantic models at transport boundaries
  • async-first request handlers even when core logic stays sync
  • startup/lifespan hooks instead of plain context management entrypoints