FastAPI - Modern Python APIs
Build blazing-fast Python APIs in this one-day FastAPI course. You'll learn project setup, routing, request validation with Pydantic, database integration with SQLAlchemy, authentication, background tasks, and deployment. By the end, you'll have a production-ready API.
Skills You'll Learn
Course Modules & Lessons
FastAPI Fundamentals
Project setup, routing, path/query parameters, request/response models, and the interactive docs
Projekt erstellen & erste Route
Projektstruktur, uvicorn und Hello World Endpoint
Path & Query Parameters
Dynamische Routen und Filterparameter definieren
Request & Response Models
Typisierte Ein- und Ausgaben mit Pydantic BaseModel
Interaktive API-Docs
Swagger UI und ReDoc automatisch generieren lassen
Data Models & Validation
Pydantic models, nested schemas, custom validators, serialization, and error handling
Pydantic Models vertiefen
Verschachtelte Modelle, Optional/Required und Aliase
Custom Validators
field_validator, model_validator und komplexe Regeln
Serialisierung & Schemas
model_dump(), response_model und Schema-Vererbung
Fehlerbehandlung
HTTPException, benutzerdefinierte Error Handler und Logging
Database Integration
SQLAlchemy ORM, async database access, migrations with Alembic, and CRUD operations
SQLAlchemy Setup
Engine, Session und Modelle definieren
CRUD-Operationen
Create, Read, Update, Delete mit Dependency Injection
Async Database Access
Asynchrone Datenbankverbindungen mit asyncpg
Migrationen mit Alembic
Schema-Änderungen versioniert verwalten
Deployment & Documentation
Authentication with OAuth2/JWT, CORS, testing with pytest, Docker, and production deployment
OAuth2 & JWT Auth
Token-basierte Authentifizierung implementieren
CORS & Middleware
Cross-Origin Requests und benutzerdefinierte Middleware
Testing mit pytest
TestClient, Fixtures und API-Tests schreiben
Docker & Deployment
Dockerfile erstellen und Produktions-Deployment
Prerequisites
Your Trainer

David Pinezich
Experienced IT architect and trainer specializing in Python, Cloud Architecture, and Enterprise Solutions. Certified TOGAF, CISSP, and AWS professional with years of hands-on training experience.