Practical Standard Library Tools
Handle time, structured collections, text patterns, and reproducible project environments with deliberate choices.
Files, objects, and iteration. You've built working programs.
Use standard-library tools effectively (datetime, pathlib, contextlib), isolate project dependencies with virtual environments, and follow Python best practices (PEP 8).
Read in order, or jump to what you need.
Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.
- 08.01Datetime and Time Zones4 min
Represent dates and instants accurately, and keep time-zone assumptions visible at system boundaries.
- 08.02Collections and Itertools4 min
Express common counting, queueing, grouping, and streaming tasks with tools that match the data flow.
- 08.03Regular Expressions4 min
Use text patterns for focused extraction and validation while keeping complexity and input boundaries under control.
- 08.04Virtual Environments and Dependencies4 min
Give each project a predictable interpreter and dependency workflow without confusing activation, installation, and reproducibility.
Ready to move on?
Choose the appropriate collection for a task, handle timezone-aware timestamps correctly, and document how to recreate your project environment from scratch.
Open the module self-check