Python Cheatsheet 06 — uv Packaging and Workflow

Cheatsheet: uv init, uv add, uv sync, uv lock, uv run, uv build, uv publish.

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

Integration Cheatsheet 06 — Multi-Tenancy Across the Stack

Cheatsheet: tenant context, RLS policies, per-request session, isolation tests.

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

Alembic Cheatsheet 06 — Branching and Merging

Cheatsheet: when branches form, alembic merge, single-head CI gate, recovery.

May 15, 2026 · 3 min · 434 words · Manvendra Rajpoot

Pydantic Cheatsheet 06 — Custom Types and TypeAdapter

Cheatsheet: custom types via Annotated, GetCoreSchemaHandler, RootModel, TypeAdapter, dataclass integration.

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

SQLAlchemy Cheatsheet 06 — Transactions and Concurrency

Cheatsheet: session.begin, begin_nested, isolation levels, with_for_update, optimistic locking, deadlock retry.

May 12, 2026 · 2 min · 413 words · Manvendra Rajpoot

Alembic Textbook Ch. 6 — Multi-Database and Multi-Tenant Migrations

Multi-DB migrations via Alembic: -t multidb template, schema-per-tenant strategies, parallelism.

May 10, 2026 · 3 min · 607 words · Manvendra Rajpoot

Pydantic v2 Textbook Ch. 6 — Custom Types and TypeAdapter

Custom types via Annotated, RootModel for primitive-typed root, TypeAdapter for arbitrary types, dataclass integration.

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

SQLAlchemy 2.0 Textbook Ch. 6 — Relationships and Loading Strategies

Relationship() in depth: configuration, loading strategies, N+1 prevention, association tables, polymorphic patterns.

May 7, 2026 · 5 min · 884 words · Manvendra Rajpoot

Python Cheatsheet 07 — pytest Essentials

Cheatsheet: pytest basics, fixtures, parametrize, marks, conftest, pytest-asyncio.

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

Integration Cheatsheet 07 — Background Jobs Across the Stack

Cheatsheet: enqueue from request, worker with DB session, outbox + LISTEN/NOTIFY wake-up.

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