Python Cheatsheet 01 — asyncio Essentials

Cheatsheet: async/await basics, asyncio.run, gather vs TaskGroup, timeouts, cancellation.

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

Python Cheatsheet 02 — Type Hints (Modern)

Cheatsheet: X | None syntax, generics, Protocol, TypedDict, ParamSpec, type guards.

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

Python Cheatsheet 03 — Dataclasses and attrs

Cheatsheet: @dataclass, @define, frozen, slots, field, validators.

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

Python Cheatsheet 04 — Decorators and Context Managers

Cheatsheet: function/class decorators, @wraps, async decorators, contextmanager, asynccontextmanager.

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

Python Cheatsheet 05 — Iterators, Generators, and Comprehensions

Cheatsheet: iter/next, generators, async generators, comprehensions, itertools.

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

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

Python Cheatsheet 07 — pytest Essentials

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

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

Python Cheatsheet 08 — Logging with structlog

Cheatsheet: structlog setup, JSON/console, contextvars, processors, trace correlation.

May 17, 2026 · 2 min · 402 words · Manvendra Rajpoot

Python Cheatsheet 09 — Profiling (py-spy, cProfile, scalene)

Cheatsheet: when to use each profiler, common commands, reading output.

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

Python Cheatsheet 10 — pathlib (Modern File Paths)

Cheatsheet: Path basics, joining, globbing, reading, writing, traversing.

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