Python Engineering

From scripts to production-grade Python.

8 articles

  1. 01

    Python Engineering (1): Environment Setup — pyenv, venv, and Dependency Hell

    Master Python environment management with pyenv, virtual environments, and modern dependency tools. Escape dependency …

    30 min
  2. 02

    Python Engineering (2): Project Structure — From Script to Package

    Learn how to organize Python code into proper packages with imports, entry points, and CLI tools. Build a real …

    32 min
  3. 03

    Python Engineering (3): Testing — pytest, Fixtures, and the Confidence Loop

    Build confidence in your code with pytest fixtures, parametrize, mocking, and coverage. Learn debugging techniques that …

    34 min
  4. 04

    Python Engineering (4): Type Hints, Linting, and Code Quality

    Add type safety with mypy, enforce style with ruff and black, and automate checks with pre-commit hooks. Make code …

    34 min
  5. 05

    Python Engineering (5): I/O, Serialization, and Data Formats

    Handle files, paths, encodings, and data formats in Python. Compare JSON, YAML, TOML, CSV, pickle, and Parquet with …

    34 min
  6. 06

    Python Engineering (6): Concurrency — Threads, Processes, and asyncio

    Understand the GIL, master threading, multiprocessing, and asyncio. Learn which concurrency model to use for I/O-bound …

    38 min
  7. 07

    Python Engineering (7): Packaging — From pip install to PyPI

    Package your Python code for distribution via pip, publish to PyPI, create Docker images, and manage versioning. The …

    28 min
  8. 08

    Python Engineering (8): Performance — Profiling, Caching, and Knowing When to Stop

    Profile Python code to find real bottlenecks, apply caching and vectorization where they matter, and avoid the trap of …

    36 min