The standard library you will actually use
The standard library you will actually use
Python ships with a large standard library, and most of it you will never open. A small part of it turns up in every backend you write: logging so you can see what happened, datetime with zoneinfo so timestamps mean something, a few containers from collections, a few tools from itertools and functools, enum for closed sets of values, and uuid and secrets for identifiers and tokens. Knowing these eight well means not reaching for a package where one line of standard Python would do.
This lesson walks through each with the use it has in Relay. None of the examples needs a dependency.
Continue reading
Pro unlocks every video lesson, the full notes and runnable code across the Python with AI course, from the language itself to agents, MCP, Langfuse and deployment.