The Python Standard Library

One of the buzzwords used to describe Python is that it is a batteries included language, that is, it comes with a rich collection of built-in modules and packages called the Python Standard Library. If you've written any non-trivial Python program, you've almost certainly used modules from the Python Standard Library to do so. To get an idea of how vast the Python Standard Library is, here are a few example modules from this library:

Module

Description

datetime

Defines classes to store and perform calculations using date and time values

tempfile

Defines a range of functions to work with temporary files and directories

csv

Supports reading and writing of CSV format files

hashlib

Implements cryptographically ...

Get Modular Programming with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.