Pysheeet
A collection of useful Python code snippets, patterns, and idioms — organized into focused cheat sheets.
Getting Started
Not sure where to begin? Follow the Learning Path — a recommended progression through all topics, organized by skill level and goal. Includes quick paths for interview prep, data science, and systems engineering.
Sections
- Interview — question-indexed map into all topics
- Basic — syntax, data types, functions, classes, data structures
- OS — file I/O, dates, OS interfaces, pathlib, logging
- CLI — argparse, Click command-line tools
- Concurrency — threading, multiprocessing, futures
- Asyncio — async/await, event loops, servers
- Network — sockets, SSL, SSH, async networking
- Database — SQLAlchemy ORM and query patterns
- Web — FastAPI web framework
- Security — TLS, crypto, common vulnerabilities
- Testing — pytest, unittest.mock
- Extension — C extensions, ctypes, C-API
- LLM — large language model training, serving, benchmarks
- HPC — Ray, Slurm cluster computing
- Data Science — NumPy, pandas
- Appendix — specialized topics (GDB, NCCL, NVSHMEM, etc.)