Writing Small Functions
Design testable functions for scripts, data processing, AI helpers, and server tools.
Modules, Imports, and Entrypoints
Organize Python code into reusable files, packages, and executable commands.
Objects, dataclasses, and Types
Use classes, dataclasses, and type hints when structure improves clarity.
Type Hints and Docstrings
Document function contracts with annotations and concise docstrings.
Project Architecture Patterns
Organize Python projects into modules, entry points, and reusable boundaries.