Topics in this subject
11 topics
FastAPI
Mental Model and ASGI
Why FastAPI? ASGI (Uvicorn) vs WSGI, and extreme speed in Python.
✓Pydantic and Validation
Type hints and Pydantic models for automatic data validation and serialization.
✓Path and Query Parameters
Routing, dynamic URLs, optional query strings, and parameter validation.
✓Request Body and Responses
Handling JSON payloads, multiple models, and customizing HTTP status codes.
✓Dependency Injection
FastAPI's superpower for sharing logic, database connections, and authentication.
✓APIRouter (Structuring Apps)
Organizing large applications into manageable files and modules.
✓Background Tasks
Running tasks asynchronously after the HTTP response has been sent.
✓Database Integration (SQLAlchemy)
Connecting to SQL databases using SQLAlchemy and managing migrations with Alembic.
✓Authentication and OAuth2
Implementing OAuth2 with Passwords and handling JWTs in FastAPI.
✓Middleware and CORS
Adding CORS policies and custom request interceptors in FastAPI.
✓FastAPI Cheat Sheet
Quick reference for common FastAPI syntax and patterns.
No topics match that search.