Skip to main content

Python Roadmap

A short roadmap to use Python effectively for scripting, automation, CLI tools, and hardware/firmware testing.

1. Core Python​

  • Master built-in types (list, dict, set, tuple), comprehensions, slicing, generators, and context managers (with).
  • Write clear code with dataclass, type hints (list[str], dict[str, int], Path), and explicit exception handling.
  • Know the essential standard library modules: pathlib, json, csv, re, subprocess, logging, struct.

2. Modern Tooling​

  • Manage Python versions and virtual environments with uv (or venv + pyproject.toml).
  • Use ruff for fast linting and formatting; run type checks with mypy or pyright.
  • Write unit tests with pytest (fixtures, parametrize, mocks).

3. Scripting & CLI Tools​

  • Build clean CLI tools with argparse (built-in) or typer / click.
  • Call HTTP APIs with httpx or requests, and parse YAML/TOML (tomllib).
  • Package scripts as installable tools via pyproject.toml ([project.scripts]).
  • See also: Python Cheatsheet.

4. Hardware & Test Automation​

  • Talk to devices over UART/Serial with pyserial and over SSH with paramiko or fabric.
  • Parse embedded logs, decode binary frames (struct.unpack), and write automated board test harnesses.
  • Run test scripts inside CI/CD (GitHub Actions, Jenkins).

Further Reading​