High-Performance Web Apps with FastAPI
eBook - ePub

High-Performance Web Apps with FastAPI

The Asynchronous Web Framework Based on Modern Python

  1. English
  2. ePUB (mobile friendly)
  3. Only available on web
eBook - ePub

High-Performance Web Apps with FastAPI

The Asynchronous Web Framework Based on Modern Python

Book details
Table of contents
Citations

About This Book

Build APIs and web apps based on Asynchronous Server Gateway Interface (ASGI). This book provides a comprehensive explanation of using Pydantic models to construct the request/response objects in a FASTAPI path operation.

You'll start by reviewing type hints in Python and the asynchronous processing concepts. One of the highlights of FastAPI is its auto generation of API docs. Pydantic library is the main pillar on top of which FastAPI is built. You'll see that ASGI has a far better performance compared to most of the other popular Python frameworks as they implement Web server Gateway Interface (WSGI), which is synchronous in nature and hence having slower response time.

This book thoroughly explains how FastAPI interacts asynchronously with relational as well as NOSQL databases. Modern web apps use template engines to interact with the front-end. In this book, you will learn to use jinja2 templates and static assets. Swagger UI and OpenAPI standards are also covered in detail. Finally, different options of deployment of FastAPI app have been explored in this book.

This book uses practical examples to empower you to build high performance APIs

What You'll Learn

  • Develop robust and high-performance web apps
  • Deploy the FastAPI app for public availability using cloud services such as Deta and Docker container
  • Understand the important building blocks of a web app such as form handling, templating and database interaction

Who This Book Is For

Aspiring and the experienced Python developers looking to leverage the flexibility of Python and the powerful features introduced in Modern Python. Computer science Engineering students at graduate and postgraduate level will also benefit immensely from the practical approach adapted in the book.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access High-Performance Web Apps with FastAPI by Malhar Lathkar in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Programming. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Apress
Year
2023
ISBN
9781484291788

Table of contents

  1. Cover
  2. Front Matter
  3. 1. Introduction to FastAPI
  4. 2. Getting Started with FastAPI
  5. 3. Request Body
  6. 4. Templates
  7. 5. Response
  8. 6. Using Databases
  9. 7. Bigger Applications
  10. 8. Advanced Features
  11. 9. Security and Testing
  12. 10. Deployment
  13. Back Matter