Writing Small Functions
Define, call, and design Python functions that are readable, testable, and focused on one job.
Modules, Imports, and Entrypoints
Organize code into modules, import from the standard library and third-party packages, and structure a proper script entrypoint.
Objects, Dataclasses, and Types
Model data with classes, use dataclasses for clean records, and add type hints to make code self-documenting.
Type Hints and Docstrings
Document your code with docstrings and type hints so that teammates, tools, and your future self can understand it.
Project Architecture Patterns
Structure Python projects that are easy to maintain, test, and deploy — from scripts to multi-module applications.