Standard Library
Essential Python standard library modules. Master file handling, regular expressions, structured data serialization (JSON & CSV), and precise date and time arithmetic.
Chapter Lessons
File Handling
File handling is a fundamental concept in Python that involves opening, reading, writing, and appending to files. This module demonstrates both traditional and modern approaches using pathlib.
Regex
Using regular expressions is a robust way to search for text. Implementing them is difficult but Python provides a package for us to use them easily. This module shows a few examples of how to use the `re` package to search predefined text snippets stored in module-level constants.
Data Format
One of the reasons people use Python is that it simplifies parsing and converting data to serialized objects for further analysis. This module shows how to parse and process these data formats: JSON, XML and CSV.
Date Time
The `datetime` class is one of the core classes we encounter when tracking events at a given date and time. By default, creating an instance with `datetime.now` means that an offset-naive datetime object is produced in the host's local timezone.
Itertools
The `itertools` module provides a suite of fast, memory-efficient tools for constructing and manipulating iterators.