pyguides

PyGuides

Learn Python

In-depth guides, tutorials, and a complete reference for Python developers at every level.

111 guides · 313 reference entries · 69 tutorials

Latest guides

View all →
  1. Rich Terminal Output in Python pyguides.dev/guides

    Add colored, formatted terminal output to Python CLIs with the Rich library. Covers markup, tables, progress bars, and status spinners.

  2. 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.

  3. 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.

  4. 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.

  5. 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 →
  1. Python Fundamentals
  2. Scientific Python
  3. Intermediate Python

Latest articles

View all →
  1. 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.

  2. 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.