Micro Free Course — 100% Free Learning

All lessons in this module are free to learn. Sign in with Google to save your progress.

2

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 Progress0% Complete
85 min total
8 Lessons
0 Completed

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.

11 minVideo
Start

Recap — Fixtures, Mocking, Coverage, Test Organization

The pytest features that matter in production: fixtures, parametrize, mocking, pytest-cov, conftest patterns.

11 minTutorial
Start

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.

10 minVideo
Start

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.

10 minTutorial
Start

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.

10 minVideo
Start

Recap — Exceptions, Retries, Result Types

Designing exception hierarchies, retry with tenacity, when to use Result types, and the EAFP vs LBYL Python idiom.

10 minTutorial
Start

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.

10 minVideo
Start

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.

10 minTutorial
Start
Production Python | Python for Software Engineers | Topfolio