fastapi-patterns
FastAPI best practices covering project structure, Pydantic v2 schemas, dependency injection, async handlers, authentication, authorization, transactional service layers, and testing with httpx and pytest. Use when building or reviewing FastAPI apps — Pydantic schemas, dependencies, async handlers, auth, or tests.
- installs 8w
- 1,916
- 30-day movement
- starts with the next reading
- Related entries
- 4
- Connections
- 0
An agent skill (SKILL.md) that loads FastAPI best practices into an AI coding agent. Its rules section covers project structure, Pydantic v2 schemas, dependency injection, async handlers, auth, transactional service layers, and testing with httpx and pytest.
Reach for it when building or reviewing FastAPI apps so the agent applies consistent patterns for schemas, dependencies, auth, and tests.
Use it to
- Scaffold a FastAPI project structure
- Write Pydantic v2 schemas and typed response models
- Design dependency injection and async handlers
- Add authentication and transactional service layers
- Write tests with httpx and pytest
For Developers building or reviewing FastAPI applications
- Host repository
- affaan-m/ECC
- Installs, lifetime
- 3,100
- Installs, 8 weeks
- 1,916
- Host stars
- 261k
- Host language
- JavaScript