Web Framework

Best FastAPI Books

8books
1top picks

Editor's top FastAPI books

1
Cover of FastAPI
IntermediatePaid★ Top Pick

FastAPI

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

1
Cover of Python API Development Fundamentals
BeginnerPaid

Python API Development Fundamentals

Jack Chan · Packt · 372 pages · ~9 hrs to read

★★★★★5.01 Google ratings

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

7
Cover of FastAPI
IntermediatePaid★ Top Pick

FastAPI

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.

Cover of Building Python Microservices with FastAPI
IntermediatePaid

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.

Cover of Building Data Science Applications with FastAPI
IntermediatePaid

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.

Cover of Microservice APIs
AdvancedPaid

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.

Cover of High Performance Python, 2nd Edition
AdvancedPaid

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.

Cover of Python Concurrency with asyncio
IntermediatePaid

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.

Cover of Python Testing with pytest, 2nd Edition
IntermediatePaid

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.

Learn next

PythonPydanticSQLAlchemyPostgreSQLDockerRedisCeleryJWT