Add colored, formatted terminal output to Python CLIs with the Rich library. Covers markup, tables, progress bars, and status spinners.
Latest guides
View all →- Rich Terminal Output in Python pyguides.dev/guides
- argparse Basics: Parsing Command-Line Arguments in Python pyguides.dev/guides
Learn argparse basics in Python. Build command-line interfaces with positional and optional arguments, type conversion, default values, and help messages.
- NumPy Basics: Arrays and Vectorized Math pyguides.dev/guides
Learn to create and manipulate NumPy arrays, perform vectorized math operations, and use broadcasting to write faster, cleaner numerical code.
- email module pyguides.dev/guides
Parse, compose, and encode email messages in Python. Work with Message objects, MIME structures, headers, and encoding for plain-text and multipart emails.
- ftplib module pyguides.dev/guides
Connect to FTP servers, upload and download files, navigate directories, and manage FTP connections using Python's built-in ftplib library.
Reference
View all →| Name | Section | Description |
|---|---|---|
__lt__ / __le__ / __gt__ / __ge__ | Dunder Methods | Learn how to define comparison operators for custom Python classes using __lt__, __le__, __gt__, and __ge__ rich comparison dunder methods. |
__getitem__ | Dunder Methods | Implement subscription access for custom objects with __getitem__ — the hook behind obj[key] syntax in Python. |
__len__ | Dunder Methods | Implement __len__ to define custom length behavior for your objects with Python's __len__ dunder method. |
lzma module | Modules | Compress and decompress data with LZMA compression in Python. Use LZMAFile for files, compress/decompress for raw bytes, and tune preset levels. |
selectors module | Modules | High-level I/O multiplexing in Python. Monitor multiple sockets or files for readiness using selectors — event-driven networking made simple. |
shelve module | Modules | Persist Python objects to a disk-based dictionary with the shelve module. Open, write, read, and manage shelf files with pickle-backed storage. |
Tutorial series
View all →Latest articles
View all →- Why small examples teach Python faster pyguides.dev/articles
Small, runnable Python examples teach concepts faster because readers can test ideas immediately and see concrete results.
- What's New in Python 3.14 pyguides.dev/articles
An overview of the major features in Python 3.14, including deferred annotations, template strings, and performance gains.