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.

17m read timeFrom github.com
Post cover image
Table of contents
FastAPI Best PracticesContentsProject StructureAsync RoutesPydanticDependenciesMiscellaneousBonus Section
1 Comment

Sort: