Opinionated list of best practices for FastAPI development, including project structure, async routes, Pydantic, and dependency management. It covers a comprehensive folder structure inspired by Netflix's Dispatch, explains the handling of async and sync routes, emphasizes the importance of Pydantic for validations, and provides insights on organizing dependencies for effective request validation. Additional notes on database naming conventions, migration practices, API documentation, and integration tests are also included.
Table of contents
FastAPI Best PracticesContentsProject StructureAsync RoutesPydanticDependenciesMiscellaneousBonus Section1 Comment
Sort: