Python Cheatsheet 20 — Modern Project Setup (uv + ruff + mypy + pytest)

Cheatsheet: full pyproject.toml, pre-commit, GitHub Actions, layout, conventions.

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

Python Data Pipelines in 2026 — Polars, Ibis, DuckDB, and the Practical Stack

Practical Python data: Polars for in-memory DataFrames, DuckDB for SQL on files, Ibis for portable expression API, and how to compose them.

May 5, 2026 · 4 min · 780 words · Manvendra Rajpoot

FastAPI Dependency Injection in 2026 — Patterns That Scale Past Toy Apps

Practical FastAPI DI: scoped dependencies, async DB sessions, auth chains, request-scoped state, lifespan resources, and where DI starts to bite.

May 4, 2026 · 5 min · 888 words · Manvendra Rajpoot

Python 3.13 Features That Matter in 2026

Practical Python 3.13: free-threaded (no-GIL) mode, experimental JIT, better REPL, deprecations, and an honest look at what to adopt now.

May 4, 2026 · 4 min · 700 words · Manvendra Rajpoot

uv in 2026 — Why Python Tooling Finally Felt Done

Practical uv: project setup, dependency management, lockfiles, tool installs, scripts with inline deps, and why it replaced pip/poetry for many teams.

May 4, 2026 · 4 min · 743 words · Manvendra Rajpoot

Python Profiling in 2026 — py-spy, scalene, memray, and Finding Real Bottlenecks

Practical Python profiling: py-spy in production, scalene for line-level CPU+memory, memray for leaks, async profiling, and the discipline of measuring before optimizing.

May 3, 2026 · 4 min · 741 words · Manvendra Rajpoot

Python Logging in 2026 — structlog, JSON, and Logs That Actually Help Debug

Practical Python logging: structlog over stdlib, JSON for parseability, correlation IDs via contextvars, levels that mean something, and PII redaction.

May 2, 2026 · 3 min · 635 words · Manvendra Rajpoot

Python Packaging in 2026 — uv, Hatch, pyproject.toml, and Shipping Wheels

Practical Python packaging: pyproject.toml as source of truth, uv / hatch for builds, src layout, wheels with Cython / Rust, and publishing without drama.

May 2, 2026 · 4 min · 760 words · Manvendra Rajpoot

Python Async Patterns in 2026 — TaskGroup, asyncio.timeout, and Production Patterns

Practical Python async: TaskGroup for structured concurrency, asyncio.timeout, gather pitfalls, anyio for portability, and how to avoid lost exceptions.

May 2, 2026 · 4 min · 710 words · Manvendra Rajpoot

Python Data Validation in 2026 — Pydantic, msgspec, attrs, and the Choices

Picking a Python validation library: Pydantic v2 (default), msgspec (10× faster, leaner), attrs (no validation; pure dataclass replacement). When each wins.

May 1, 2026 · 3 min · 538 words · Manvendra Rajpoot