⚡ Quick Jump
Foundations
Core FastAPI
Advanced Features
Production
01 · Python Foundations
02 · Async Programming
03 · ASGI
04 · FastAPI Core
05 · Pydantic
06 · Responses
07 · DI
08 · Middleware
09 · Exceptions
10 · Auth
11 · Security
12 · Database
13 · Background
14 · WebSockets
15 · Streaming
16 · Config
17 · OpenAPI
18 · Testing
19 · Observability
20 · Architecture
21 · Production
22 · Ai_patterns
🐍 Foundations
01
Python Foundations
Type hints, decorators, dataclasses, comprehensions, and the Pythonic patterns FastAPI relies on.
Foundations
02
Async Programming
Event loops, coroutines, async/await, asyncio primitives, and concurrency vs. parallelism.
Foundations
03
ASGI Fundamentals
The ASGI spec, Starlette internals, lifespan events, scopes, and how FastAPI sits on top.
Foundations
⚡ Core FastAPI
04
FastAPI Core
App instantiation, routers, path operations, path/query/body parameters, and request lifecycle.
Core
05
Pydantic v2
Models, validators, field constraints, settings management, and deep schema customisation.
Core
06
Responses & Serialisation
Response models, status codes, JSONResponse, custom headers, cookies, and file responses.
Core
07
Dependency Injection
Depends(), scoped dependencies, yield deps, overrides, and composing complex DI graphs.
Core
08
Middleware
ASGI middleware, CORSMiddleware, GZip, custom middleware, and request/response hooks.
Core
09
Exception Handling
HTTPException, custom exception handlers, validation error overrides, and error schemas.
Core
🚀 Advanced Features
10
Authentication
OAuth2 password flow, JWT tokens, API keys, cookie auth, and token refresh strategies.
Advanced
11
Security
HTTPS, CSRF, rate limiting, secrets management, and security headers best practices.
Advanced
12
Database Integration
SQLAlchemy async, Alembic migrations, connection pooling, and repository patterns.
Advanced
13
Background Tasks
BackgroundTasks, Celery integration, task queues, scheduling, and fire-and-forget patterns.
Advanced
14
WebSockets
WebSocket endpoints, connection managers, rooms, broadcasting, and auth over WS.
Advanced
15
Streaming Responses
StreamingResponse, Server-Sent Events, chunked transfer, and streaming large payloads.
Advanced
16
Configuration Management
Pydantic Settings, .env files, environment-aware config, secrets injection, and validation.
Advanced
17
OpenAPI & Docs
Schema customisation, Swagger UI / ReDoc, operationIds, tags, and client SDK generation.
Advanced
🏭 Production
18
Testing
TestClient, pytest fixtures, async tests, mocking dependencies, and integration test strategies.
Production
19
Observability
Structured logging, OpenTelemetry tracing, Prometheus metrics, health checks, and dashboards.
Production
20
Project Architecture
Domain-driven structure, layered architecture, plugin patterns, and scaling FastAPI monorepos.
Production
21
Topic 21 — Coming Soon
This topic will be added shortly. Stay tuned!
Coming Soon
22
Topic 22 — Coming Soon
This topic will be added shortly. Stay tuned!
Coming Soon