Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
If you are starting a Python API. It scaffolds a project. Do not point it at an existing Django app.
FastAPI Project Templates
Production-ready FastAPI project structures with async patterns, dependency injection, middleware, and best practices for building high-performance APIs.
When to Use This Skill
Starting new FastAPI projects from scratch
Implementing async REST APIs with Python
Building high-performance web services and microservices
Creating async applications with PostgreSQL, MongoDB
Setting up API projects with proper structure and testing
# requirements.txtfastapiuvicorn[standard]pydantic-settingssqlalchemy[asyncio]>=2.0 # DeclarativeBase; [asyncio] installs greenlet for the async engineasyncpg # PostgreSQL driver: postgresql+asyncpg://...PyJWTpwdlib[argon2]python-multipart # only for a login route that uses OAuth2PasswordRequestForm# requirements-dev.txtpytestpytest-asynciohttpxaiosqlite # test database: sqlite+aiosqlite:///:memory:
Detailed worked examples and patterns
Detailed sections (starting with ## Implementation Patterns) live in references/details.md. Read that file when the navigation summary above is insufficient.