typestar

Domain tools

41 steps in 11 sets of Python.

The standard library doing real jobs. Regular expressions, sockets, HTTP both directions, sqlite3, and the formats you end up parsing whether you wanted to or not: JSON, CSV, and their awkward cousins.

Then the parts nobody teaches and everybody needs. argparse, pathlib and the archive modules, bytes and hashlib and secrets, configuration and the eternal misery of time zones, and finally the measuring tools, timeit and dis and inspect, for when you need to know what Python is actually doing.

Start this tour

Regular expressions

Sockets & networking

Web

Databases

Data formats

Command line

  • argparseA parser built from declarations gives you help, types and errors for free.
  • SubcommandsSubparsers give one program several verbs, each with its own arguments.
  • loggingA logger per module, a level, and a format: never print for diagnostics.
  • subprocessrun a command, capture its output, and check the exit code.

Files & archives

Bytes & secrets

Configuration & time

Measuring & introspecting

Encore

The other Python tours