- Home
- Courses
- Python for Software Engineers
- Production Python
Micro Free Course — 100% Free Learning
All lessons in this module are free to learn. Sign in with Google to save your progress.
Production Python
pytest with fixtures, mocking, parametrization, coverage; structured logging and 12-factor configuration; exception hierarchies, retry patterns, Result types; Pythonic design patterns vs Gang-of-Four.
Module Content
Testing with pytest
The dominant Python testing framework. Fixtures, parametrization, mocking, coverage. FIND_VIDEO: search 'python pytest tutorial fixtures parametrize' — recommended channel: ArjanCodes / mCoding. Aim for 11 min or under.
Recap — Fixtures, Mocking, Coverage, Test Organization
The pytest features that matter in production: fixtures, parametrize, mocking, pytest-cov, conftest patterns.
Logging & Configuration
Structured logging, log levels, and the 12-factor config pattern. The foundation of observable Python apps. FIND_VIDEO: search 'python logging configuration 12 factor' — recommended channel: ArjanCodes / mCoding. Aim for 10 min or under.
Recap — Structured Logging and 12-Factor Config
Why print() is wrong, how to use the logging module right, structured logging with structlog/loguru, and env-based config.
Error Handling Patterns
Exception hierarchies, retries with backoff, Result types, and the patterns that production code uses. FIND_VIDEO: search 'python exception handling patterns best practices' — recommended channel: ArjanCodes / mCoding. Aim for 10 min or under.
Recap — Exceptions, Retries, Result Types
Designing exception hierarchies, retry with tenacity, when to use Result types, and the EAFP vs LBYL Python idiom.
Design Patterns in Python
Design patterns adapted to Python. Most GoF patterns are simpler in Python; some are unnecessary. FIND_VIDEO: search 'python design patterns pythonic SOLID' — recommended channel: ArjanCodes / mCoding. Aim for 10 min or under.
Recap — Pythonic Patterns vs Gang-of-Four
Python's first-class functions and duck typing make many GoF patterns disappear. The ones that still apply, and the Python idioms.