Python Cheat Sheets
Quick, compact reference pages for the Python topics you use every day. You can browse each cheat sheet online, or you can download it as a printable PDF. Keep the most useful ones next to your keyboard, or use them as wallpaper behind your desk.
Python Essentials
Python Cheat Sheet
Setup, syntax, data types, variables, strings, control flow, functions, classes, errors, and I/O.
View cheat sheet →
Python 3.15 Cheat Sheet
Everyday syntax plus what's new: lazy imports, frozendict, sentinels, unpacking in comprehensions, and UTF-8 by default.
View cheat sheet →
Python Decorators Cheat Sheet
Basic decorators, arguments, functools.wraps, decorator factories, class-based decorators, and built-ins.
View cheat sheet →
Python Regex Cheat Sheet
Character classes, anchors, quantifiers, groups, lookarounds, flags, and the re module functions.
View cheat sheet →
File and Folder Automation Cheat Sheet
pathlib, globbing, reading and writing files, shutil, file metadata, zip archives, and bulk rename recipes.
View cheat sheet →
Python Security Checklist
Secrets, password hashing, encryption, HTTPS, input validation, injection, and dependency audits.
View cheat sheet →AI Apps, Agents, and Tools
LLM APIs and MCP Cheat Sheet
API calls in Python, messages and roles, structured outputs, tool calling, agent loops, and MCP servers and clients.
View cheat sheet →
Claude Code Hooks Cheat Sheet
settings.json layout, lifecycle events, matchers, the exit-code contract, and Python hook scripts.
View cheat sheet →