Python FoundationsBeginner7 modules~3.5 hours hands-on
Build a Real CLI Tool in Python
Build and install a real command-line task manager — the todo command — with argparse subcommands, JSON persistence, error handling, tests, and a pyproject entry point.
// What you'll be able to do- Prerequisites, scope, and honest expectations
- Scaffold the todo package
- argparse subcommands and dispatch
- Read and write the JSON data file
7 modules, built to run
Every module ships runnable code. Expand any one to see what's inside.
00IntroductionThe todo command you'll build and install30 min
Objective — The todo command you'll build and install
Start moduleFree preview
01OrientationPrerequisites, scope, and honest expectations30 min
Objective — Prerequisites, scope, and honest expectations
02Project SetupScaffold the todo package30 min
Objective — Scaffold the todo package
03Parsing Commandsargparse subcommands and dispatch30 min
Objective — argparse subcommands and dispatch
04Persisting TasksRead and write the JSON data file30 min
Objective — Read and write the JSON data file
05Robust and TestedError handling and a pytest suite30 min
Objective — Error handling and a pytest suite
06See It RunPackage it so pip install gives a real todo command30 min
Objective — Package it so pip install gives a real todo command
Ready to start Build a Real CLI Tool in Python?
Start with the free Module 0, then unlock the full course on a Pro plan.