Integration Cheatsheet 01 — Full-Stack Project Skeleton

Cheatsheet: directory layout, pyproject, lifespan, db / settings / models / api wiring.

May 16, 2026 · 3 min · 503 words · Manvendra Rajpoot

Pydantic Cheatsheet 01 — BaseModel Basics

Cheatsheet: BaseModel definition, model_validate, model_dump, model_config.

May 14, 2026 · 2 min · 324 words · Manvendra Rajpoot

Pydantic v2 Textbook Ch. 1 — Introduction and the v2 Mental Model

Pydantic v2 mental model: validation (input → model), serialization (model → output), the Rust core, and what changed from v1.

May 9, 2026 · 3 min · 568 words · Manvendra Rajpoot

Pydantic Cheatsheet 02 — Field and Constraints

Cheatsheet: Field options, constraints (min/max/gt/le/pattern), defaults, default_factory, aliases.

May 14, 2026 · 3 min · 451 words · Manvendra Rajpoot

FastAPI Cheatsheet 02 — Pydantic Request Validation

Cheatsheet: BaseModel, Field, validators, custom errors, nested, discriminated unions, strict mode at the boundary.

May 11, 2026 · 3 min · 560 words · Manvendra Rajpoot

Pydantic v2 Textbook Ch. 2 — Fields, Types, and Constraints

Field declaration, types (str, int, datetime, UUID, Decimal, EmailStr, HttpUrl), constraints, defaults, aliases.

May 9, 2026 · 4 min · 759 words · Manvendra Rajpoot

Integration Cheatsheet 03 — Pydantic ↔ SQLAlchemy Mapping

Cheatsheet: schema vs model separation, partial updates, ORM-to-API conversion, nested relations.

May 16, 2026 · 3 min · 636 words · Manvendra Rajpoot

Pydantic Cheatsheet 03 — Validators

Cheatsheet: field_validator (mode=before/after), model_validator, BeforeValidator/AfterValidator, ValidationInfo.

May 14, 2026 · 3 min · 496 words · Manvendra Rajpoot

Pydantic v2 Textbook Ch. 3 — Validators in Depth

All Pydantic v2 validation hooks: field_validator, model_validator, mode=before/after, custom validators via Annotated.

May 9, 2026 · 4 min · 743 words · Manvendra Rajpoot

FastAPI Textbook Ch. 3 — Pydantic Models and Request Validation

Request validation with Pydantic v2: BaseModel, Field, validators, custom types, error responses, nested models, discriminated unions, and the FastAPI integration.

May 6, 2026 · 5 min · 970 words · Manvendra Rajpoot