Micro Free Course — 100% Free Learning

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

0

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

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.

11 minVideo
Start

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.

11 minTutorial
Start

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.

10 minVideo
Start

Recap — Choosing dataclass vs Pydantic vs NamedTuple

The trade-offs of each: mutability, validation, performance, API stability.

10 minTutorial
Start

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.

10 minVideo
Start

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).

11 minTutorial
Start

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.

9 minVideo
Start

Recap — uv, Poetry, pip-tools Compared

The pros and cons of each, when to choose what, and the migration paths between them.

9 minTutorial
Start
Modern Python Foundations | Python for Software Engineers | Topfolio