A complete first-principles journey into Python, CPython internals, software engineering, and the Python ecosystem.
This project aims to be the definitive Python curriculum.
The objective is not merely learning syntax.
The objective is mastery.
Every concept answers:
- What is it?
- Why does it exist?
- What problem does it solve?
- How does it work?
- How is it implemented?
- What are the tradeoffs?
- How does it connect to previous concepts?
The curriculum follows strict dependency order and avoids unexplained magic.
- Beginners seeking deep understanding.
- Intermediate developers wanting solid foundations.
- Professional engineers transitioning into Python.
- Interview preparation.
- Open-source contributors.
- Engineers interested in CPython internals.
Start with the Preface for the curriculum's intent, reading guidance, and expectations.
Volume I builds the complete mental model required before advanced Python feels natural. It starts below Python, moves through execution, objects, references, primitive types, control flow, functions, data structures, memory behavior, and finally modules/imports.
- History and Philosophy of Python
- Python Implementations
- How Python Runs: Source Code to Bytecode
- Bytecode and the Python Virtual Machine
- Functions, Parameters, and Return Values
- Scope and Namespaces
- Closures
- Call Stack and Stack Frames
- Recursion
- Functional Programming
- Lists
- Tuples
- Dictionaries
- Sets
- Comprehension Patterns
- Specialized Collections:
deque,Counter,defaultdict,heapq, andbisect - Custom Data Structures
Volume II moves from using Python correctly to understanding Python's advanced protocols, object model, runtime behavior, and implementation mechanics.
- Classes and Instances
- Attributes and Methods
- Encapsulation and Managed Attributes
- Composition
- Inheritance and Method Overriding
- MRO and
super() - Polymorphism and Duck Typing
- ABCs and Mixins
- Dataclasses
- Dunder Methods
- Operator Overloading
- Descriptors
- Properties, Static Methods, and Class Methods
__slots__- Metaclasses
Volume III turns Python knowledge into production engineering practice, including testing, debugging, packaging, modern project tooling, typing, profiling, design, architecture, APIs, and microservices.
- Testing
- Mocking and Monkey Patching
- Debugging
- Logging
- Packaging
- Type Hints
- Static Type Checking
- Profiling
- Design Patterns
- SOLID Principles
- Architecture
- APIs
- Microservices
Volume IV connects Python mastery to real-world domains, frameworks, libraries, modern LLM tooling, model hubs, AI systems, automation, and professional specialization paths.
- Backend Engineering
- Data Engineering
- Machine Learning Engineering
- AI Engineering
- DevOps
- Cybersecurity
Capstones are placed after the learner has the prerequisites needed to build them properly. They should reinforce the book instead of acting as disconnected exercises.
- Todo CLI
- File Organizer
- REST API
- URL Shortener
- ORM
- Task Queue
- Mini Redis
- Mini Web Framework
- Mini Event Loop
- Toy Python Interpreter
- Distributed Scheduler
After completing this curriculum, the learner should need only:
- Official documentation.
- Domain-specific resources.
No general Python tutorial should be necessary.