<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Pydantic on Manvendra Rajpoot</title>
    <link>https://blog.rajpoot.dev/tags/pydantic/</link>
    <description>Recent content in Pydantic on Manvendra Rajpoot</description>
    <image>
      <title>Manvendra Rajpoot</title>
      <url>https://blog.rajpoot.dev/img/personal/cover.png</url>
      <link>https://blog.rajpoot.dev/img/personal/cover.png</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Manvendra Rajpoot</copyright>
    <lastBuildDate>Sun, 17 May 2026 17:50:46 +0530</lastBuildDate>
    <atom:link href="https://blog.rajpoot.dev/tags/pydantic/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Integration Cheatsheet 01 — Full-Stack Project Skeleton</title>
      <link>https://blog.rajpoot.dev/cheatsheets/integrations/01-full-stack-skeleton-cheatsheet/</link>
      <pubDate>Sat, 16 May 2026 06:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/integrations/01-full-stack-skeleton-cheatsheet/</guid>
      <description>FastAPI &#43; SQLAlchemy &#43; Pydantic &#43; Alembic project skeleton.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 01 — BaseModel Basics</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/01-basemodel-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 06:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/01-basemodel-cheatsheet/</guid>
      <description>Pydantic v2 BaseModel cheatsheet — definition, validation, serialization.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 1 — Introduction and the v2 Mental Model</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/01-introduction-and-mental-model/</link>
      <pubDate>Sat, 09 May 2026 06:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/01-introduction-and-mental-model/</guid>
      <description>Chapter 1 — Pydantic v2 introduction: BaseModel, validation vs serialization, the v2 architecture.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 02 — Field and Constraints</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/02-fields-constraints-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 06:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/02-fields-constraints-cheatsheet/</guid>
      <description>Pydantic v2 Field cheatsheet — defaults, constraints, descriptions, aliases.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 02 — Pydantic Request Validation</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/02-pydantic-validation-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 06:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/02-pydantic-validation-cheatsheet/</guid>
      <description>FastAPI request validation cheatsheet — Pydantic v2 models, validators, error handling, recipes.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 2 — Fields, Types, and Constraints</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/02-fields-types-constraints/</link>
      <pubDate>Sat, 09 May 2026 06:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/02-fields-types-constraints/</guid>
      <description>Chapter 2 — Pydantic v2 fields, types, constraints, defaults, aliases.</description>
    </item>
    <item>
      <title>Integration Cheatsheet 03 — Pydantic ↔ SQLAlchemy Mapping</title>
      <link>https://blog.rajpoot.dev/cheatsheets/integrations/03-pydantic-sqlalchemy-mapping-cheatsheet/</link>
      <pubDate>Sat, 16 May 2026 06:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/integrations/03-pydantic-sqlalchemy-mapping-cheatsheet/</guid>
      <description>Map Pydantic schemas to SQLAlchemy models — Read/Create/Update, from_attributes.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 03 — Validators</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/03-validators-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 06:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/03-validators-cheatsheet/</guid>
      <description>Pydantic v2 validators — field_validator, model_validator, before/after, Annotated validators.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 3 — Validators in Depth</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/03-validators/</link>
      <pubDate>Sat, 09 May 2026 06:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/03-validators/</guid>
      <description>Chapter 3 — Pydantic v2 validators: field_validator, model_validator, before/after, BeforeValidator/AfterValidator.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 3 — Pydantic Models and Request Validation</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/03-pydantic-models-validation/</link>
      <pubDate>Wed, 06 May 2026 06:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/03-pydantic-models-validation/</guid>
      <description>Chapter 3 — Pydantic for FastAPI: input models, validators, types, custom errors, and how request bodies become typed Python objects.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 04 — Serialization</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/04-serialization-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 06:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/04-serialization-cheatsheet/</guid>
      <description>Pydantic v2 serialization — model_dump, custom serializers, mode.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 4 — Serialization in Depth</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/04-serialization/</link>
      <pubDate>Sat, 09 May 2026 06:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/04-serialization/</guid>
      <description>Chapter 4 — Pydantic v2 serialization: model_dump, model_dump_json, custom serializers, exclude, mode.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 05 — Discriminated Unions and Generics</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/05-discriminated-unions-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 06:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/05-discriminated-unions-cheatsheet/</guid>
      <description>Pydantic v2 discriminated unions, generic models, recursion.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 5 — Nested Models, Generics, and Discriminated Unions</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/05-nested-generics-unions/</link>
      <pubDate>Sat, 09 May 2026 06:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/05-nested-generics-unions/</guid>
      <description>Chapter 5 — Pydantic v2: nested models, generic models, discriminated unions.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 06 — Custom Types and TypeAdapter</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/06-custom-types-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 06:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/06-custom-types-cheatsheet/</guid>
      <description>Pydantic v2 custom types, TypeAdapter, dataclass integration.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 6 — Custom Types and TypeAdapter</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/06-custom-types-typeadapter/</link>
      <pubDate>Sat, 09 May 2026 06:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/06-custom-types-typeadapter/</guid>
      <description>Chapter 6 — Pydantic v2 custom types, RootModel, TypeAdapter, dataclass integration.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 07 — Strict vs Lax Mode</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/07-strict-lax-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 07:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/07-strict-lax-cheatsheet/</guid>
      <description>Pydantic v2 strict / lax mode — coercion rules, per-field strict, per-call strict.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 7 — Strict Mode and Coercion</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/07-strict-mode-coercion/</link>
      <pubDate>Sat, 09 May 2026 07:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/07-strict-mode-coercion/</guid>
      <description>Chapter 7 — Pydantic v2 strict mode, lax mode, per-field strict types, and coercion rules.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 08 — Aliases (Input/Output Field Names)</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/08-aliases-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 07:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/08-aliases-cheatsheet/</guid>
      <description>Pydantic v2 aliases — alias, validation_alias, serialization_alias, AliasChoices, AliasPath.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 8 — JSON Schema Generation</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/08-json-schema/</link>
      <pubDate>Sat, 09 May 2026 07:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/08-json-schema/</guid>
      <description>Chapter 8 — Pydantic v2 JSON Schema generation, OpenAPI integration, custom schemas.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 09 — pydantic-settings</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/09-settings-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 07:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/09-settings-cheatsheet/</guid>
      <description>pydantic-settings cheatsheet — env vars, .env, secrets, layered config.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 9 — Settings (pydantic-settings)</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/09-settings/</link>
      <pubDate>Sat, 09 May 2026 07:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/09-settings/</guid>
      <description>Chapter 9 — pydantic-settings: env vars, .env files, secrets, layered config, CLI integration.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 10 — JSON Schema and OpenAPI</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/10-json-schema-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 07:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/10-json-schema-cheatsheet/</guid>
      <description>Pydantic v2 JSON Schema generation — model_json_schema, OpenAPI, LLM tool calling.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 10 — Performance, FastAPI Integration, and Alternatives</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/10-performance-and-alternatives/</link>
      <pubDate>Sat, 09 May 2026 07:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/10-performance-and-alternatives/</guid>
      <description>Chapter 10 — Pydantic performance, FastAPI integration patterns, and alternatives (msgspec, attrs).</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 11 — Performance</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/11-performance-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 07:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/11-performance-cheatsheet/</guid>
      <description>Pydantic v2 performance tips — schema caching, TypeAdapter, validation speed, msgspec comparison.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 12 — Error Handling</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/12-errors-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 07:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/12-errors-cheatsheet/</guid>
      <description>Pydantic v2 ValidationError — structure, formatting, custom error envelopes.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 13 — ORM Mode (from_attributes)</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/13-orm-mode-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 08:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/13-orm-mode-cheatsheet/</guid>
      <description>Pydantic v2 from_attributes — converting SQLAlchemy / attrs / dataclass instances.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 14 — FastAPI Patterns</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/14-fastapi-patterns-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 08:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/14-fastapi-patterns-cheatsheet/</guid>
      <description>Pydantic &#43; FastAPI common patterns — request/response models, partial updates, query class.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 15 — Recursive Models and Forward References</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/15-recursive-models-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 08:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/15-recursive-models-cheatsheet/</guid>
      <description>Pydantic v2 recursive models, forward refs, mutually-recursive models.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 16 — Computed Fields</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/16-computed-fields-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 08:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/16-computed-fields-cheatsheet/</guid>
      <description>Pydantic v2 computed_field — derived attributes in output.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 17 — pydantic.dataclasses</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/17-dataclass-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 08:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/17-dataclass-cheatsheet/</guid>
      <description>Pydantic v2 dataclass integration — when to use, when to skip.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 18 — Common Domain Types (IDs, Money, Phone, Email)</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/18-common-domain-types-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 08:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/18-common-domain-types-cheatsheet/</guid>
      <description>Pydantic v2 common domain types — IDs, money, phone numbers, dates, URLs.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 19 — Testing Pydantic Models</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/19-testing-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 09:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/19-testing-cheatsheet/</guid>
      <description>Pydantic testing patterns — parametrized validation tests, factories, error matching.</description>
    </item>
    <item>
      <title>Pydantic Cheatsheet 20 — Migration v1 → v2</title>
      <link>https://blog.rajpoot.dev/cheatsheets/pydantic/20-migration-v1-v2-cheatsheet/</link>
      <pubDate>Thu, 14 May 2026 09:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/pydantic/20-migration-v1-v2-cheatsheet/</guid>
      <description>Pydantic v1 → v2 migration cheatsheet — renames, API differences, gotchas.</description>
    </item>
    <item>
      <title>Pydantic v2 Deep Dive — The Patterns Every Backend Python Developer Needs</title>
      <link>https://blog.rajpoot.dev/posts/python/pydantic-v2-deep-dive-2026/</link>
      <pubDate>Thu, 30 Apr 2026 11:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/python/pydantic-v2-deep-dive-2026/</guid>
      <description>A deep dive into Pydantic v2 — model design, validators, serializers, settings, performance, and the patterns that make it the typed-data backbone of modern Python.</description>
    </item>
    <item>
      <title>Structured Output for LLMs in 2026 — Pydantic AI, Instructor, and the End of JSON Parsing</title>
      <link>https://blog.rajpoot.dev/posts/ai/structured-output-pydantic-ai-instructor-2026/</link>
      <pubDate>Thu, 30 Apr 2026 09:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/ai/structured-output-pydantic-ai-instructor-2026/</guid>
      <description>How to get structured, validated output from LLMs in 2026 — Pydantic AI, Instructor, native tool-calling, OpenAI&amp;#39;s structured outputs API, and the patterns that make extraction reliable.</description>
    </item>
    <item>
      <title>FastAPI &#43; Pydantic v2 &#43; SQLAlchemy 2.0 — Production Patterns for 2026</title>
      <link>https://blog.rajpoot.dev/posts/fastapi/fastapi-pydantic-v2-sqlalchemy-2-production/</link>
      <pubDate>Tue, 28 Apr 2026 17:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/fastapi/fastapi-pydantic-v2-sqlalchemy-2-production/</guid>
      <description>The FastAPI stack worth building on in 2026 — Pydantic v2, async SQLAlchemy 2.0, dependency injection, settings, errors, observability, and the layout that scales past one file.</description>
    </item>
    <item>
      <title>Getting Started with FastAPI: Modern Python APIs Done Right</title>
      <link>https://blog.rajpoot.dev/posts/fastapi/getting-started-with-fastapi/</link>
      <pubDate>Tue, 28 Apr 2026 11:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/fastapi/getting-started-with-fastapi/</guid>
      <description>A practical introduction to FastAPI — the async Python framework that gives you type-safe APIs, automatic docs, and great performance with very little ceremony.</description>
    </item>
  </channel>
</rss>
