Editor's top FastAPI books
1FastAPI
Bill Lubanovic · O'Reilly · 280 pages · ~7 hrs to read
The O'Reilly FastAPI book — covers the framework end-to-end from path operations and Pydantic models through database integration, testing, and deployment. Best single-book reference.
FastAPI Books for Beginners
1Python API Development Fundamentals
Jack Chan · Packt · 372 pages · ~9 hrs to read
Introductory guide to building Python APIs — covers REST principles, Flask and FastAPI basics, database integration, and JWT authentication for developers starting backend work.
Intermediate & Advanced FastAPI Books
7FastAPI
Bill Lubanovic · O'Reilly · 280 pages · ~7 hrs to read
The O'Reilly FastAPI book — covers the framework end-to-end from path operations and Pydantic models through database integration, testing, and deployment. Best single-book reference.
Building Python Microservices with FastAPI
Sherwin John Tragura · Packt · 420 pages · ~11 hrs to read
Covers building microservice architectures with FastAPI — service decomposition, inter-service communication, asynchronous patterns, and Docker deployment.
Building Data Science Applications with FastAPI
François Voron · Packt · 426 pages · ~11 hrs to read
Focused on using FastAPI for data science and ML model serving — covers async patterns, WebSockets, caching, and deploying scikit-learn and PyTorch models as APIs.
Microservice APIs
José Haro Peralta · Manning · 482 pages · ~12 hrs to read
Covers the design and implementation of microservice APIs with FastAPI — OpenAPI specification-first development, authentication, authorization, and production deployment patterns.
High Performance Python, 2nd Edition
Micha Gorelick · O'Reilly · 469 pages · ~12 hrs to read
Profiling, concurrency, and optimization techniques for Python — covers async patterns, Cython, multiprocessing, and memory management relevant to high-throughput FastAPI services.
Python Concurrency with asyncio
Matthew Fowler · Manning · 374 pages · ~9 hrs to read
Deep dive into Python async/await and asyncio — covers event loops, coroutines, tasks, and concurrent database access patterns directly applicable to FastAPI development.
Python Testing with pytest, 2nd Edition
Brian Okken · Pragmatic Bookshelf · 314 pages · ~8 hrs to read
The definitive pytest book — covers fixtures, parametrize, mocking, and test organization. Essential for FastAPI developers writing unit and integration tests with httpx and pytest.
FastAPI resources
Learn next