Pydantic Cheatsheet 14 — FastAPI Patterns

Cheatsheet: Read/Create/Update model trio, PATCH partial updates, Pagination class, filter from class.

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

SQLAlchemy Cheatsheet 14 — Multi-Tenancy Patterns

Cheatsheet: shared DB + tenant_id, schema-per-tenant, DB-per-tenant, query filters, context propagation.

May 12, 2026 · 3 min · 481 words · Manvendra Rajpoot

Python Cheatsheet 15 — stdlib logging Configuration

Cheatsheet: basicConfig, named loggers, handlers, formatters, dictConfig.

May 17, 2026 · 3 min · 447 words · Manvendra Rajpoot

Pydantic Cheatsheet 15 — Recursive Models and Forward References

Cheatsheet: self-referencing, model_rebuild, mutually recursive, tree / graph patterns.

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

SQLAlchemy Cheatsheet 15 — Common Pitfalls and Fixes

Cheatsheet: N+1, IntegrityError, DetachedInstanceError, MissingGreenlet, lazy-load in async, pool exhaustion.

May 12, 2026 · 3 min · 610 words · Manvendra Rajpoot

Python Cheatsheet 16 — Sets, Dicts, and Common Patterns

Cheatsheet: set/dict operations, merging, grouping, set ops.

May 17, 2026 · 4 min · 667 words · Manvendra Rajpoot

Pydantic Cheatsheet 16 — Computed Fields

Cheatsheet: @computed_field, alias, exclude, type annotation, caching.

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

SQLAlchemy Cheatsheet 16 — Type Annotations and Mapped Style

Cheatsheet: Mapped types, mapped_column with types, type_annotation_map, Annotated types, generic mapping.

May 12, 2026 · 3 min · 592 words · Manvendra Rajpoot

Python Cheatsheet 17 — Strings, f-strings, and Encoding

Cheatsheet: f-string formatting, str methods, bytes/str, encoding, regex basics.

May 17, 2026 · 3 min · 588 words · Manvendra Rajpoot

Pydantic Cheatsheet 17 — pydantic.dataclasses

Cheatsheet: pydantic.dataclass vs BaseModel, attrs comparison, stdlib dataclass conversion.

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