fastapi · git:20260511.02d510f · 2026-05-11 · sha256 eaa201e2e899ab42

fastapi git:20260511.02d510fC

Immutable. This exact content never changes and is served at /api/v1/blob/eaa201e2e899ab42.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_otb7c7r7bjrq6oga/eaa201e2e899ab4256d031a5555f7fddd6f7726c6388cdb22dcbff61355c467f.json

Then /plugin install fastapi@markdownregistry-otb7c7r7bjrq6oga in Claude Code. It installs this exact version, the one graded C here, pinned to the commit it was graded at, and leaves it there.

# Python FastAPI PUDO Checklist

## 1. PLAN (Architecture & Strategy)
- [ ] **API Design:** Define RESTful endpoints, path parameters, and query parameters.
- [ ] **Data Validation:** Plan Pydantic models for request (In) and response (Out) schemas.
- [ ] **Database & ORM:** Select the async DB driver and ORM (e.g., SQLAlchemy 2.0 with async engine, SQLModel).
- [ ] **Authentication:** Plan dependency injection for Auth (OAuth2, JWT tokens).

## 2. UNDERSTAND (Context & Auditing)
- [ ] **Dependencies:** Review the existing dependency injection (`Depends()`) tree.
- [ ] **Sync vs Async:** Audit for blocking I/O calls within `async def` endpoints. Ensure CPU-bound tasks use `def` or thread pools.
- [ ] **Middleware:** Review CORS, rate limiting, and custom middleware configurations.

## 3. DEVELOP (Implementation)
- [ ] **Schemas:** Implement strict Pydantic v2 models with `Field` validation constraints.
- [ ] **Endpoints:** Create routers (`APIRouter`) to group related endpoints.
- [ ] **Dependency Injection:** Use `Depends()` for database sessions, current user retrieval, and pagination parameters.
- [ ] **Error Handling:** Implement custom Exception Handlers for consistent JSON error responses.

## 4. OPTIMIZE (Performance & Review)
- [ ] **Concurrency:** Ensure database calls are utilizing `await` properly without deadlocks.
- [ ] **Serialization:** Profile Pydantic serialization speeds; consider `orjson` if JSON parsing is a bottleneck.
- [ ] **Documentation:** Enrich OpenAPI docs with endpoint descriptions, tags, and summary response models.
- [ ] **Security:** Verify that sensitive models do not leak password hashes via `response_model` constraints.