Search across all documentation pages
12 pages in this section.
Why "batteries included" is a design contract, not a marketing phrase - how pathlib/os, datetime/zoneinfo, json, re, and subprocess each own one stable platform job, and how to decide when a PyPI package earns its place instead.
A map of the batteries and what to reach for.
Dates, times, timezones, and durations.
Parsing, custom encoders, and streaming JSON.
Patterns, groups, flags, and a Python regex reference.
Running external commands safely and capturing output.
Cross-links to the toolkit modules.
Args and config files without dependencies.
Prefer stdlib before adding a dependency.