Skip to content

Stdlib Deep Dives

Master the Python standard library. No external packages needed for most of these.

graph TD
    pathlib["pathlib"] --> caching["caching"]
    caching --> multiprocess["multiprocessing"]
    pathlib --> fractions["fractions"]
    pathlib --> ansi["ANSI escape sequences"]
    pathlib --> singledispatch["singledispatch"]

    style pathlib fill:#e3f2fd,stroke:#1565c0
    style caching fill:#e3f2fd,stroke:#1565c0
    style multiprocess fill:#e3f2fd,stroke:#1565c0
    style fractions fill:#e3f2fd,stroke:#1565c0
    style ansi fill:#e3f2fd,stroke:#1565c0
    style singledispatch fill:#e3f2fd,stroke:#1565c0

    click pathlib "../wiki/lightning-talks/pathlib/"
    click caching "../wiki/lightning-talks/caching/"
    click multiprocess "../wiki/lightning-talks/multiprocess/"
    click fractions "../wiki/lightning-talks/fractions/"
    click ansi "../wiki/lightning-talks/ansi-escape-sequences/"
    click singledispatch "../wiki/lightning-talks/singledispatch/"

The Sequence

  1. pathlib — Modern, object-oriented file path handling. The foundation for everything else.
  2. ANSI Escape Sequences — Terminal colors, positioning, and animation using only builtins
  3. fractions — Rational number arithmetic and measurement conversion
  4. caching — Memoization with functools.lru_cache for performance
  5. multiprocessing — Parallel execution when caching isn't enough
  6. singledispatch — Function overloading based on argument type

Where to Go Next