Python
Python
A comprehensive, self-contained engineering volume covering Python from scratch across the major domains of modern computing: DevOps, Network Automation, Data Science, AI/GenAI, Robotics, Cybersecurity, and Distributed Web Systems.
Part 1 (Python Foundations) begins with modern toolchain setup using uv and ruff, moves through core syntax and OOP, and provides an exhaustive deep dive into the Python Standard Library (stdlib) before covering modern typing, testing, packaging, concurrency, and CPython internals in a direct topic progression. Dedicated parts follow for each primary engineering domain, concluding with cross-domain Enterprise Production Capstones.
Baseline: Python 3.14 (free-threading enabled) · toolchain uv · linter/formatter ruff. Completely self-contained. No other title in this library is required.
Start here
Open Basics in the sidebar. You need a computer, a terminal, and any text editor. Zero prior Python experience required.
All examples are complete, runnable files:
uv run python hello.pyBook Roadmap & Master Architecture
| Part | Slug | Domain / Focus | Key Concepts & Technologies |
|---|---|---|---|
| 01 | 01-python-foundations |
Python Foundations | Modern setup (uv, ruff), syntax, memory, data types, loops, functions, OOP, dataclasses, comprehensive Standard Library (collections, itertools, re, pathlib, json, sqlite3, datetime, subprocess, logging, socket), typing (mypy), testing (pytest), packaging, concurrency, CPython bytecode & free-threading |
| 02 | 02-devops-and-cloud-engineering |
DevOps, SRE & Cloud | Terminal UIs (rich/typer), docker-py, Kubernetes client, Pulumi IaC, OpenTelemetry, Boto3 |
| 03 | 03-network-automation |
NetDevOps & Telemetry | netmiko, scrapli, napalm, nornir, NETCONF (ncclient), RESTCONF, gNMI, NetBox, pyATS |
| 04 | 04-data-science-and-analytics |
Vector Engines & Analytics | NumPy, Pandas 2, Polars (LazyFrame), DuckDB OLAP, Apache Arrow, SciPy, Plotly |
| 05 | 05-artificial-intelligence |
ML, Deep Learning & GenAI | Scikit-Learn, PyTorch 2.x, Transformers, RAG (Qdrant), Instructor, LangGraph agents |
| 06 | 06-robotics-and-simulation |
Robotics & Physical Systems | ROS 2 (rclpy), PyBullet physics, OpenCV vision, ArUco fiducials, A*/RRT, MicroPython |
| 07 | 07-cybersecurity-and-automation |
Threat & Security Automation | Raw sockets, Scapy packet crafting, cryptography (AES/RSA), pefile, SIEM triage |
| 08 | 08-web-and-distributed-systems |
Web APIs & Distributed Systems | ASGI, FastAPI, WebSockets, background queues (ARQ/Redis), OAuth2/JWT, SQLAlchemy 2.0 |
| 09 | 09-capstone-systems |
Enterprise Capstones | Autonomous SRE Agent, NetDevOps Intent Pipeline, Vision-Guided Robotic Telemetry |
Architectural Conventions
- Modern Tooling Upfront: Environment bootstrapping, runtime version pinning, and code hygiene are taught with
uvandruffon day one. - Exhaustive Standard Library: Complete coverage of Python’s built-in batteries (
collections,itertools,pathlib,sqlite3,subprocess,socket, etc.) without skipping to third-party dependencies prematurely. - Original Prose & Complete Files: Full runnable source files instead of truncated snippets.
- Progressive Typing: Pure syntax in initial chapters; formal type annotations (
mypy/pyright) introduced starting with modern craft chapters. - Domain Autonomy: Domain mathematics, protocol structures, and operating system mechanics are taught directly in-situ.
Formats
Available in HTML, PDF, and EPUB via the monorepo build pipeline.