FastAPI FastAPI is a Python web framework built on Starlette (ASGI) and Pydantic. It provides automatic request validation, serialization, and interactive API docs at (Swagger UI) and . Installation Project Structure Application Setup Routes and Path Operations Dependency Injection Pydantic Schemas and Validation Middleware Background Tasks WebSocket Support Testing Running Key Patterns - Use to control output serialization and strip internal fields - Group routes with and include in main app via - Use for DB sessions, auth, pagination — they compose and cache per-request - Raise for error re…