#FastAPI

3 posts

Modern Python in Practice #2: Routing, Pydantic Models, and Dependency Injection
7 min read

Modern Python in Practice #2: Routing, Pydantic Models, and Dependency Injection

Splitting routes with APIRouter, defining input/output schemas with Pydantic v2, and unraveling shared logic cleanly with Depends.

Modern Python FastAPI #1 Getting Started and Setup
7 min read

Modern Python FastAPI #1 Getting Started and Setup

Why FastAPI, first project setup with uv, Hello FastAPI, automatic OpenAPI/Swagger UI generation — all in one place.

Docker in Practice #1: Containerizing FastAPI — uv, Multi-stage, non-root
8 min read

Docker in Practice #1: Containerizing FastAPI — uv, Multi-stage, non-root

First post of the practice series. Containerizing the most common scenario — a FastAPI app. Slim base on uv, multi-stage to separate build from runtime deps, a non-root user, and HEALTHCHECK — in a shape that goes straight to production.