Skip to content
Hands-on course · 16 days

Python hands-on

Modern Python for platform engineers – build a small, useful tool every day, from a word counter to an AI agent with MCP.

  • Free · no subscription
  • 16 days · 45–150 min each
  • 143 drills · with expected output

Companion code on GitHub

Day 1 · Drill 8: The tool is done
$ uv run wc --top 3 lab/runbook.txt
$ uv run wc gibt-es-nicht.txt; echo "exit=$?"
$ uv run wc -x; echo "exit=$?"
$ uv run wc -h

Expected

       5      31     209 lab/runbook.txt
--- Top 3 ---
zertifikat         3
prüfe              3
dienst             2
wc: gibt-es-nicht.txt: No such file or directory
exit=1
usage: wc [-h] [-l] [-w] [-m] [--top N] [files ...]
wc: error: unrecognized arguments: -x
…

As a book · Edition 2026 · PDF and EPUB

The whole course to take with you, for reading away from the screen. Reading online stays free.

With Pro: as your book of the month Pro launches soon. With a free account you can join the Pro waitlist.
Leanpub · soon Amazon · soon

What you'll be able to do

  • Build CLI tools with typer, pathlib and subprocess and test them with pytest, fixtures and mocks
  • Ship a tool as a versioned package that installs via uv tool install
  • Check hundreds of URLs in parallel with asyncio and build a URL shortener with FastAPI and SQLite
  • Talk to a local LLM from Python, query notes via RAG and offer tools as an MCP server

What you need

LabA Mac or Linux machine with a terminal; Docker is not required.

Day 0You set up uv, Python 3.14, ruff and pytest yourself.

Part C · Days 10–13Ollama running locally with the model ministral-3:3b (3.0 GB).

Training plan

One day = one sitting. Every day ends with a checkpoint and a challenge. About 35 hours in total.

More