Categories

Python Engineering

Apr 27, 2022 Python Engineering 36 min read

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 premature optimization.

Apr 24, 2022 Python Engineering 28 min read

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 complete guide from local project to installable package.

Apr 21, 2022 Python Engineering 38 min read

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 vs CPU-bound workloads.

Apr 19, 2022 Python Engineering 34 min read

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 practical examples.

Apr 17, 2022 Python Engineering 34 min read

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 reviews about logic, not formatting.

Apr 14, 2022 Python Engineering 34 min read

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 save hours.

Apr 12, 2022 Python Engineering 32 min read

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 command-line application from scratch.

Apr 10, 2022 Python Engineering 30 min read

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

Master Python environment management with pyenv, virtual environments, and modern dependency tools. Escape dependency hell for good.