Python Standard Library Patterns
itertools, functools, json, datetime, uuid, regex, subprocess, typing, and enum recipes.
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Itertools and functools
## JSON, datetime, and UUID
## Regular expressions and subprocess
## Typing and enums
More in Python
Python OOP and Modules
Classes, dataclasses, inheritance, properties, abstract base classes, modules, and package patterns.
Python Strings, Files, and Exceptions
String handling, file I/O, pathlib, JSON, and exception-handling patterns.
Python Functions and Comprehensions
Functions, parameters, lambda, decorators, comprehensions, generators, and functional helpers.
Python Data Structures
Lists, tuples, dictionaries, sets, deque, Counter, defaultdict, heapq, and collection idioms.
Python Cheat Sheet
Core Python syntax, control flow, operators, collections, and everyday language patterns.
Recommended next
Redis Persistence, Replication, and Cluster Cheat Sheet
REDIS
RDB, AOF, replication, failover, Lua scripts, functions, and cluster command references for operational Redis use.
Redis Admin and redis-cli Cheat Sheet
REDIS
redis-cli operational workflows, latency inspection, slowlog, config, ACL, clients, and safe administrative controls.
Redis Transactions, Pub/Sub, and Streams Cheat Sheet
REDIS
Atomic transactions, optimistic locking, pub/sub messaging, streams, consumer groups, geo commands, bitmaps, and HyperLogLog.
Redis Data Types Cheat Sheet
REDIS
High-value Redis commands for lists, sets, hashes, and sorted sets used in queues, objects, tags, and leaderboards.
Redis Cheat Sheet
REDIS
Comprehensive Redis commands for redis-cli, key lifecycle, strings, expiration, and core operational workflows.
Docker Swarm Cheat Sheet
DOCKER
Swarm cluster, node, service, and stack commands for container orchestration on Docker Engine.