Search across all documentation pages
13 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.
Explore Python's standard library modules for common tasks like file paths, JSON, subprocesses, and hashing. Learn when to use built-in tools.
Learn to build portable file paths, walk directories, and read/write files using Python's pathlib module, combining it with os for low-level OS interaction.
Learn to store UTC instants with datetime, convert for display using zoneinfo, and calculate durations with timedelta in Python.
Learn to encode Python objects to JSON and parse JSON into Python dicts/lists using the json module, including custom encoders.
Learn to use Python's re module for regular expressions. Match, search, and substitute text, compile patterns, and use raw strings effectively.
Spawn external programs, capture output, and manage exit codes with Python's subprocess module. Learn to use argument lists safely and handle failures.
Learn how Python's collections, itertools, and functools modules enhance data handling with specialized containers, iterators, and higher-order functions.
Learn how to use Python's dataclasses, enums, and contextlib to reduce boilerplate, create type-safe constants, and simplify resource management.
Learn to build CLI interfaces with argparse and manage configurations using configparser for robust, twelve-factor applications.
Learn how to use Python's hashlib for cryptographic hashes, secrets for secure token generation, and uuid for unique identifiers.
Learn Python standard library best practices. Discover when to use built-in modules, when to add PyPI dependencies, and how to ensure safety.
A single-page roundup of every highlight bullet from the 12 pages in the Standard Library section, grouped by source page so you can scan all 70 takeaways without opening each article individually.