fastapi-patterns - Apply production-grade FastAPI development patterns
Covers FastAPI project structure, Pydantic v2 schemas, dependency injection, async handlers, authentication, authorization, transactional services, and testing.
Tags
Updated: 2026-09-30Capabilities
What this skill does
- Design project structure
- Define Pydantic v2 schemas
- Configure dependency injection
- Implement async handlers
- Secure authentication and authorization
- Manage transactional services
- Test with httpx and pytest
Inputs
- FastAPI project code
- Environment settings
- Database connection
- API request payloads
- Authentication credentials
Outputs
- FastAPI application code
- Validated API schemas
- Authenticated API responses
- Database transaction changes
- Pytest test results
Requirements
- Python environment
- FastAPI
- Pydantic v2
- pydantic-settings
- Async SQLAlchemy
- JWT and password-hashing libraries
- httpx and pytest for testing
