What problem does it solve?
Provides clear, up-to-date conventions and actionable guidance to avoid common FastAPI and Pydantic pitfalls, keep APIs secure and performant, and make codebases consistent and maintainable across versions.
Core Features & Use Cases
- Typed Parameters & Dependencies: Prefer Annotated types for parameters and dependencies to keep signatures explicit and reusable.
- Response Modeling & Safety: Encourage return types or response_model to prevent leaking sensitive data and to leverage Pydantic serialization performance.
- Router & Async Patterns: Recommend router-level configuration, appropriate async vs sync usage, streaming patterns, and dependency lifecycles for production services.
- Tooling & Ecosystem: Guidance on using tooling such as linters, type checkers, Asyncer, SQLModel, and HTTPX for robust development workflows.
Quick Start
Use the fastapi skill to refactor an endpoint to use Annotated parameters, an explicit response model, and a router-level dependency for shared authentication.