<?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>Fastapi on Manvendra Rajpoot</title>
    <link>https://blog.rajpoot.dev/categories/fastapi/</link>
    <description>Recent content in Fastapi 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/categories/fastapi/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>FastAPI Cheatsheet 01 — Routing, Path Operations, and Routers</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/01-routing-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 06:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/01-routing-cheatsheet/</guid>
      <description>FastAPI routing cheatsheet — path operations, parameter sources, routers, prefixes, mounts, and the request lifecycle in one scannable page.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 1 — Introduction, Architecture, and the ASGI Foundation</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/01-introduction-and-architecture/</link>
      <pubDate>Wed, 06 May 2026 06:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/01-introduction-and-architecture/</guid>
      <description>Chapter 1 of the FastAPI textbook — what FastAPI is, the ASGI foundation, Starlette underneath, and how the pieces fit.</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>FastAPI Textbook Ch. 2 — Routing, Path Operations, and the Request Anatomy</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/02-routing-and-request-anatomy/</link>
      <pubDate>Wed, 06 May 2026 06:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/02-routing-and-request-anatomy/</guid>
      <description>Chapter 2 — FastAPI routing in depth: path operations, parameter sources, routers, mounts, and the request lifecycle.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 03 — Response Models, Serialization, and Status Codes</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/03-response-models-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 06:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/03-response-models-cheatsheet/</guid>
      <description>FastAPI response cheatsheet — response_model, exclude, status codes, response classes, headers.</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>FastAPI Cheatsheet 04 — Dependency Injection</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/04-dependency-injection-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 06:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/04-dependency-injection-cheatsheet/</guid>
      <description>FastAPI DI cheatsheet — Depends, sub-deps, scopes, overrides, lifespan, security deps.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 4 — Response Models, Serialization, and Output Discipline</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/04-response-models-serialization/</link>
      <pubDate>Wed, 06 May 2026 06:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/04-response-models-serialization/</guid>
      <description>Chapter 4 — Response models in FastAPI: response_model, exclusion, computed fields, custom encoders, and output discipline.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 05 — Authentication and Authorization</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/05-auth-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 06:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/05-auth-cheatsheet/</guid>
      <description>FastAPI auth cheatsheet — password hashing, JWT, OAuth2 / OIDC, sessions, API keys, scopes, RBAC.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 5 — Dependency Injection in Depth</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/05-dependency-injection/</link>
      <pubDate>Wed, 06 May 2026 06:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/05-dependency-injection/</guid>
      <description>Chapter 5 — FastAPI dependency injection: Depends, sub-dependencies, scopes, lifecycle, overrides, class deps, security deps, sync vs async.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 06 — Async, Concurrency, and the Threadpool</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/06-async-concurrency-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 06:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/06-async-concurrency-cheatsheet/</guid>
      <description>FastAPI async / concurrency cheatsheet — async vs def handlers, threadpool, AnyIO, TaskGroup, blocking traps.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 6 — Authentication and Authorization</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/06-authentication-authorization/</link>
      <pubDate>Wed, 06 May 2026 06:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/06-authentication-authorization/</guid>
      <description>Chapter 6 — FastAPI auth: OAuth2 password / bearer / OIDC, sessions, API keys, role-based access, and the production patterns.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 07 — WebSockets and SSE</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/07-websockets-sse-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 07:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/07-websockets-sse-cheatsheet/</guid>
      <description>FastAPI WebSocket &#43; SSE cheatsheet — handlers, auth, fanout, disconnect, multi-process.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 7 — Async, Concurrency, and the Threadpool</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/07-async-concurrency/</link>
      <pubDate>Wed, 06 May 2026 07:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/07-async-concurrency/</guid>
      <description>Chapter 7 — Async in FastAPI: event loop, threadpool, blocking traps, AnyIO, TaskGroup, and concurrency patterns.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 08 — Background Tasks and Job Queues</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/08-background-tasks-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 07:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/08-background-tasks-cheatsheet/</guid>
      <description>FastAPI background work cheatsheet — BackgroundTasks, ARQ, Celery, Dramatiq integration.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 8 — WebSockets, SSE, and Streaming Responses</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/08-websockets-sse-streaming/</link>
      <pubDate>Wed, 06 May 2026 07:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/08-websockets-sse-streaming/</guid>
      <description>Chapter 8 — Real-time in FastAPI: WebSockets, Server-Sent Events, streaming responses, NDJSON, and client patterns.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 09 — Testing with Pytest, AsyncClient, and testcontainers</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/09-testing-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 07:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/09-testing-cheatsheet/</guid>
      <description>FastAPI testing cheatsheet — TestClient, AsyncClient, dependency overrides, real DB tests, factories, CI.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 9 — Background Tasks and Task Queues</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/09-background-tasks/</link>
      <pubDate>Wed, 06 May 2026 07:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/09-background-tasks/</guid>
      <description>Chapter 9 — Background work in FastAPI: BackgroundTasks, ARQ, Celery, Dramatiq, and patterns for reliable post-response work.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 10 — Observability: structlog, OTEL, Prometheus</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/10-observability-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 07:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/10-observability-cheatsheet/</guid>
      <description>FastAPI observability cheatsheet — structlog, OpenTelemetry tracing, Prometheus metrics, correlation.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 10 — Testing FastAPI: Pytest, AnyIO, and Real DBs</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/10-testing/</link>
      <pubDate>Wed, 06 May 2026 07:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/10-testing/</guid>
      <description>Chapter 10 — Testing FastAPI: TestClient, AsyncClient, dependency overrides, real DB tests, fixtures, and CI patterns.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 11 — Docker, Kubernetes, and Deploy</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/11-deployment-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 07:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/11-deployment-cheatsheet/</guid>
      <description>FastAPI deploy cheatsheet — Dockerfile, Uvicorn, Kubernetes manifest, graceful shutdown, autoscaling.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 11 — Observability: Logging, Tracing, and Metrics</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/11-observability/</link>
      <pubDate>Wed, 06 May 2026 07:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/11-observability/</guid>
      <description>Chapter 11 — Observability for FastAPI: structured logging with structlog, OpenTelemetry tracing, Prometheus metrics, and correlation.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 12 — Middleware Patterns</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/12-middleware-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 07:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/12-middleware-cheatsheet/</guid>
      <description>FastAPI middleware cheatsheet — common patterns, ordering, ASGI middleware, custom logic.</description>
    </item>
    <item>
      <title>FastAPI Textbook Ch. 12 — Deployment, Scaling, and Production</title>
      <link>https://blog.rajpoot.dev/textbooks/fastapi/12-deployment-production/</link>
      <pubDate>Wed, 06 May 2026 07:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/fastapi/12-deployment-production/</guid>
      <description>Chapter 12 — Production FastAPI: ASGI servers, Docker, K8s, autoscaling, graceful shutdown, and the production checklist.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 13 — OpenAPI, Swagger UI, and Schema Tweaks</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/13-openapi-tweaks-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 08:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/13-openapi-tweaks-cheatsheet/</guid>
      <description>FastAPI OpenAPI cheatsheet — schema customization, Swagger UI tweaks, ReDoc, custom docs paths.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 14 — Settings, Config, and Environments</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/14-settings-config-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 08:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/14-settings-config-cheatsheet/</guid>
      <description>FastAPI config cheatsheet — pydantic-settings, env files, secrets, multi-environment patterns.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 15 — Common Errors and How to Fix Them</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/15-common-errors-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 08:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/15-common-errors-cheatsheet/</guid>
      <description>FastAPI common-errors cheatsheet — the recurring failures and quick fixes.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 16 — Pagination Patterns</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/16-pagination-patterns-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 08:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/16-pagination-patterns-cheatsheet/</guid>
      <description>FastAPI pagination cheatsheet — offset, cursor, keyset, opaque cursors, generic Page model.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 17 — Caching: HTTP, Redis, fastapi-cache</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/17-caching-patterns-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 08:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/17-caching-patterns-cheatsheet/</guid>
      <description>FastAPI caching cheatsheet — HTTP cache headers, Redis-backed caching, fastapi-cache library.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 18 — Streaming and LLM Integration</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/18-streaming-llm-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 08:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/18-streaming-llm-cheatsheet/</guid>
      <description>FastAPI LLM streaming cheatsheet — Anthropic / OpenAI / vLLM streaming, tool calls, cancellation.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 19 — Health, Probes, and Lifespan</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/19-health-probes-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 09:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/19-health-probes-cheatsheet/</guid>
      <description>FastAPI health / readiness / probes cheatsheet — lifespan, dependency check endpoints, K8s integration.</description>
    </item>
    <item>
      <title>FastAPI Cheatsheet 20 — Production Checklist</title>
      <link>https://blog.rajpoot.dev/cheatsheets/fastapi/20-production-checklist-cheatsheet/</link>
      <pubDate>Mon, 11 May 2026 07:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/cheatsheets/fastapi/20-production-checklist-cheatsheet/</guid>
      <description>FastAPI production checklist — every box to tick before going live.</description>
    </item>
    <item>
      <title>FastAPI Dependency Injection in 2026 — Patterns That Scale Past Toy Apps</title>
      <link>https://blog.rajpoot.dev/posts/fastapi/fastapi-dependency-injection-2026/</link>
      <pubDate>Mon, 04 May 2026 08:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/fastapi/fastapi-dependency-injection-2026/</guid>
      <description>FastAPI dependency injection in 2026 — DB sessions, auth, caching deps, lifecycle, and patterns from production FastAPI apps.</description>
    </item>
    <item>
      <title>FastAPI Background Tasks in 2026 — BackgroundTasks, ARQ, and When to Reach for Celery</title>
      <link>https://blog.rajpoot.dev/posts/fastapi/fastapi-background-tasks-2026/</link>
      <pubDate>Sat, 02 May 2026 07:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/fastapi/fastapi-background-tasks-2026/</guid>
      <description>Background tasks in FastAPI 2026 — BackgroundTasks vs ARQ vs Celery vs Dramatiq. Patterns for short tasks, long jobs, and reliable processing.</description>
    </item>
    <item>
      <title>FastAPI Streaming and SSE in 2026 — Real-Time Without WebSockets</title>
      <link>https://blog.rajpoot.dev/posts/fastapi/fastapi-streaming-sse-2026/</link>
      <pubDate>Sat, 02 May 2026 07:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/fastapi/fastapi-streaming-sse-2026/</guid>
      <description>FastAPI streaming responses and Server-Sent Events in 2026 — async generators, SSE format, LLM streaming, and the production patterns.</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>Django vs FastAPI: Which One Should You Pick in 2026?</title>
      <link>https://blog.rajpoot.dev/posts/django/django-vs-fastapi/</link>
      <pubDate>Tue, 28 Apr 2026 14:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/django/django-vs-fastapi/</guid>
      <description>An honest, opinionated comparison of Django and FastAPI — what each is great at, what they&amp;#39;re not, and how to decide which one fits your next project.</description>
    </item>
    <item>
      <title>Testing FastAPI Apps: From Pytest to Database Isolation</title>
      <link>https://blog.rajpoot.dev/posts/fastapi/testing-fastapi-apps/</link>
      <pubDate>Tue, 28 Apr 2026 13:55:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/fastapi/testing-fastapi-apps/</guid>
      <description>How to test FastAPI applications properly — pytest setup, async test client, database isolation per test, fixtures for auth, and the patterns that scale.</description>
    </item>
    <item>
      <title>JWT Authentication in FastAPI: A Complete Walkthrough</title>
      <link>https://blog.rajpoot.dev/posts/fastapi/jwt-authentication-in-fastapi/</link>
      <pubDate>Tue, 28 Apr 2026 13:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/fastapi/jwt-authentication-in-fastapi/</guid>
      <description>Build secure JWT authentication in FastAPI from scratch — password hashing, token issuing, refresh tokens, dependency-injected current user, and the security pitfalls to avoid.</description>
    </item>
    <item>
      <title>FastAPI &#43; SQLAlchemy &#43; PostgreSQL: A Modern Setup</title>
      <link>https://blog.rajpoot.dev/posts/fastapi/fastapi-with-sqlalchemy/</link>
      <pubDate>Tue, 28 Apr 2026 13:45:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/posts/fastapi/fastapi-with-sqlalchemy/</guid>
      <description>A practical guide to wiring FastAPI to PostgreSQL with SQLAlchemy 2.0 (async), Alembic migrations, and a sane project structure.</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>
