pyguides

PyGuides

Learn Python

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

145 guides · 313 reference entries · 73 tutorials

Latest guides

View all →
  1. Build an RSS Feed Reader in Python pyguides.dev/guides

    Fetch and parse RSS and Atom feeds with feedparser and httpx, handle malformed feeds, and build a CLI feed reader.

  2. Concurrent File Downloads in Python pyguides.dev/guides

    Build concurrent file downloads in Python with thread pools, asyncio, aiohttp, and httpx — including progress, retries, and timeouts.

  3. Build a Discord Bot with discord.py pyguides.dev/guides

    Make a working Discord bot in Python with discord.py — intents, events, prefix commands, and slash commands, end to end.

  4. Build an Image Resizer with Pillow pyguides.dev/guides

    Resize images in Python with Pillow: open, resize, save, preserve aspect ratio, fix EXIF rotation, and build a batch CLI.

  5. Build URL Shortener with Flask pyguides.dev/guides

    Build URL shortener with Flask and SQLite. Step-by-step tutorial covers secrets.token_urlsafe, redirects, form validation, and collision handling.

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: Deferred Annotations & More pyguides.dev/articles

    What's new in Python 3.14 includes deferred evaluation of annotations, template strings for safe interpolation, and continued interpreter speed improvements.