Python book now available free in full — Modern Python: From Basics to FastAPI in Production
I have published a new book, Modern Python: From Basics to FastAPI in Production, on the site. All 34 chapters across 5 parts are free to read in full, with no purchase or payment required. It is written so that everyone from people picking up Python for the first time to those who stopped at older syntax can follow one continuous path, starting from variable declarations and ending at deploying a real service to production.
This is not an old-style Python primer; it is a current one for the 3.14 era. Instead of pip and venv, a single tool, uv, unifies environments, packages, and execution, and every example carries type hints so you get help from mypy and pyright as a habit from the start. Part 1, Getting Started, covers variables and type hints, control flow, functions, exceptions, and modules. Part 2, Structuring Code, works through dataclass, Protocol, context managers, decorators, pattern matching, and an asyncio intro. Part 3, Depth and Concurrency, moves through magic methods, descriptors, metaclasses, asyncio in depth, the GIL, and advanced typing, and Part 4, FastAPI in Production, ties FastAPI, Pydantic v2, SQLAlchemy 2.x, JWT auth, and deployment together in a TODO API capstone. Part 5, Operations, Packaging, and Testing, covers type checkers, CI, structured logging, observability, and publishing libraries with uv, and the appendix adds a guide for moving old Python code over to the modern style.
The four free series that have run on the site — Modern Python Basics, Intermediate, Advanced, and FastAPI in practice, 27 parts in total — are all still up. This book reorganizes those 27 parts into one path from fundamentals to production, then adds 7 new chapters and an appendix as a fully revised, separate work. Even chapters that share a topic with a series post are re-narrated to fit the book’s flow and unified to the Python 3.14, uv, and type-hints baseline, so they read as different material from the posts.
The book is free to read in full. It is funded by site ads and Ko-fi support (ko-fi.com/schoolofweb), with no purchase or payment required. If even a single chapter helps you, your support makes time for future revisions and the next book.
You can find the structure, recommended entry points, and frequently asked questions on the Modern Python: From Basics to FastAPI in Production book page.