Account
Computer Science & Technology

FastAPI

Modern Python Web Development

FastAPI: Modern Python Web Development teaches you to build typed, async APIs in less code — layers, auth, testing, and production.

  • 280pages
  • 19chapters
  • 4parts
  • Firstedition

This book is for you if you are

  • already comfortable with Python and ready to build web APIs
  • moving from Flask or Django to an async, type-hinted framework
  • a data or backend engineer who needs documented, production-ready services

Why this book

FastAPI is Bill Lubanovic's practical guide to building modern Python web applications with a framework designed around newer Python features and a clean, minimal design. Published by O'Reilly Media in 2023, it treats FastAPI not as a toy but as a production framework that rivals similar tools in languages such as Golang. If you already know Python, this is the fastest path from language familiarity to a deployed, documented API.

Most FastAPI material online stops at a quickstart tutorial. This book goes further: a full framework tour covering async and concurrency with Starlette, Pydantic models and type hints, dependency injection, and side-by-side framework comparisons, then a complete build-out through the web, service, and data layers. Authentication and authorization, testing, and production deployment each get their own treatment. A closing gallery applies the stack to databases, data science and AI, files, forms and templates, visualization, and even games.

  • Tours of async, concurrency, Starlette, Pydantic, and dependencies before you write production code
  • Layered architecture explained through web, service, and data layers rather than scattered snippets
  • Dedicated chapters on authentication, authorization, testing, and production readiness
  • Worked examples spanning forms, database access, graphics, maps, and data visualization
  • Framework comparisons that help you judge when FastAPI is the right tool

Python developers moving into API work, backend engineers replacing heavier frameworks, and data practitioners who need a typed, documented service get the most from it. Get your copy today.

What you'll learn

  • Build a complete web application across web, service, and data layers
  • Apply async and concurrency patterns with Starlette
  • Model requests and responses using Pydantic and type hints
  • Wire dependency injection into real application code
  • Implement authentication and authorization
  • Write tests and prepare an API for production deployment
  • Extend the stack into databases, files, templates, and data visualization

Not the right book for: readers who are new to Python and need language fundamentals first

Questions about this book

Do I need to be an experienced Python developer to use this FastAPI book?

Yes, the book assumes you know Python and focuses on the framework and modern Python features rather than language basics.

Does the book explain async and concurrency in FastAPI?

It includes a dedicated tour of async, concurrency, and Starlette before moving into application structure.

How does the book cover Pydantic and type hints?

A full chapter tours Pydantic models and type hints, which underpin request validation and response schemas in FastAPI.

Does it cover testing and deployment?

Separate chapters address testing and production, so you can verify behavior and ship the service with confidence.

What kinds of example projects does the book include?

A gallery section covers databases, data science and AI, files, forms and templates, data discovery and visualization, and games.

Can I get it in another format?

Yes. You get the PDF right away. Need EPUB, Kindle, Word or any other format? Email support@ebooksonline.si with your order number and we send it.

Does it work on Kindle?

Yes. Email support@ebooksonline.si with your order number and we send you a Kindle-ready file.

How many times can I download it?

As many times as you like. Sign in to your account and download it again at any time.

What if the file does not work?

Contact us with your order number and we will fix it or refund you.

Contents

  1. 1Part I. What’s New?
  2. 2The Modern Web
  3. 3Modern Python
  4. 4Part II. A FastAPI Tour
  5. 5FastAPI Tour
  6. 6Async, Concurrency, and Starlette Tour
  7. 7Pydantic, Type Hints, and Models Tour
  8. 8Dependencies
  9. 9Framework Comparisons
  10. 10Part III. Making a Website
  11. 11Web Layer
  12. 12Service Layer
  13. 13Data Layer
  14. 14Authentication and Authorization
  15. 15Testing
  16. 16Production
  17. 17Part IV. A Gallery
  18. 18Databases, Data Science, and a Little AI
  19. 19Files
  20. 20Forms and Templates
  21. 21Data Discovery and Visualization
  22. 22Games
  23. 23Further Reading
  24. 24Creatures and Humans

Details

Author
Bill Lubanovic
Publisher
O'Reilly Media, Inc.
Edition
First edition, 2023
ISBN
9781098135508
Pages
280
Language
English
Formats
PDF (EPUB, Kindle or any other format on request)
File size
25.2 MB
Licence
Personal use, keep forever

Bill Lubanovic

Bill Lubanovic wrote FastAPI: Modern Python Web Development, published by O'Reilly Media in 2023.

Buy with confidence

If your file does not open or download, we fix it or refund you. Read the refund policy.

More in Computer Science & Technology

See all
Cover of 10-Minute Focus by Daniel Walter

Get a free ebook

Join the list and get 10-Minute Focus free, plus a short note when new books arrive.

Your cart

No products in the cart.

Subjects

More

Look inside

Sample