- Home
- Courses
- Python for Software Engineers
- Modern Python Foundations
Micro Free Course — 100% Free Learning
All lessons in this module are free to learn. Sign in with Google to save your progress.
Modern Python Foundations
Type hints and gradual typing with Pyright/mypy; data classes, Pydantic, NamedTuples; project structure (src layout, pyproject.toml); dependency management with uv, Poetry, and pip-tools.
Module Content
Type Hints & Static Checking
The single biggest production-quality lever for Python in 2026. Add types incrementally; let Pyright catch bugs before they ship. FIND_VIDEO: search 'python type hints mypy pyright tutorial' — recommended channel: ArjanCodes / mCoding. Aim for 11 min or under.
Recap — Pyright/mypy Patterns and Gradual Typing
The type hint syntax that matters in practice, how to add types to existing code, and what gradual typing gives you.
Data Classes & Pydantic
Three ways to model data. dataclass for plain objects, Pydantic for validated boundaries, NamedTuple for immutable tuples-with-names. FIND_VIDEO: search 'python dataclass vs pydantic vs namedtuple' — recommended channel: ArjanCodes / mCoding. Aim for 10 min or under.
Recap — Choosing dataclass vs Pydantic vs NamedTuple
The trade-offs of each: mutability, validation, performance, API stability.
Project Structure & Packaging
Modern Python projects: src layout, pyproject.toml, uv. The 2026 way to organize code that ships. FIND_VIDEO: search 'python project structure pyproject toml uv' — recommended channel: ArjanCodes / mCoding. Aim for 10 min or under.
Recap — pyproject.toml, src Layout, and Modern Packaging
The src layout, pyproject.toml as the single source of config, and the 2026 tooling landscape (uv, hatch, poetry).
Virtual Envs & Dependency Management
Isolate per-project dependencies. The 2026 tooling: uv (recommended), poetry, pip-tools, venv. How they differ. FIND_VIDEO: search 'python virtual environment uv poetry pip-tools' — recommended channel: ArjanCodes / Real Python. Aim for 9 min or under.
Recap — uv, Poetry, pip-tools Compared
The pros and cons of each, when to choose what, and the migration paths between them.