Building Python Web APIs with FastAPI
eBook - ePub

Building Python Web APIs with FastAPI

  1. 216 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Building Python Web APIs with FastAPI

About this book

Discover FastAPI features and best practices for building and deploying high-quality web APIs from scratchKey Features• A practical guide to developing production-ready web APIs rapidly in Python• Learn how to put FastAPI into practice by implementing it in real-world scenarios• Explore FastAPI, its syntax, and configurations for deploying applicationsBook DescriptionRESTful web services are commonly used to create APIs for web-based applications owing to their light weight and high scalability. This book will show you how FastAPI, a high-performance web framework for building RESTful APIs in Python, allows you to build robust web APIs that are simple and intuitive and makes it easy to build quickly with very little boilerplate code. This book will help you set up a FastAPI application in no time and show you how to use FastAPI to build a REST API that receives and responds to user requests. You'll go on to learn how to handle routing and authentication while working with databases in a FastAPI application. The book walks you through the four key areas: building and using routes for create, read, update, and delete (CRUD) operations; connecting the application to SQL and NoSQL databases; securing the application built; and deploying your application locally or to a cloud environment.By the end of this book, you'll have developed a solid understanding of the FastAPI framework and be able to build and deploy robust REST APIs.What you will learn• Set up a FastAPI application that is fully functional and secure• Understand how to handle errors from requests and send proper responses in FastAPI• Integrate and connect your application to a SQL and NoSQL (MongoDB) database• Perform CRUD operations using SQL and FastAPI• Manage concurrency in FastAPI applications• Implement authentication in a FastAPI application• Deploy a FastAPI application to any platformWho this book is forThis book is for Python developers who want to learn FastAPI in a pragmatic way to create robust web APIs with ease. If you are a Django or Flask developer looking to try something new that's faster, more efficient, and produces fewer bugs, this FastAPI Python book is for you. The book assumes intermediate-level knowledge of Python programming.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
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.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
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 use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Building Python Web APIs with FastAPI by Abdulazeez Abdulazeez Adeshina in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Desarrollo web. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Building Python Web APIs with FastAPI
  2. Contributors
  3. Preface
  4. Part 1: An Introduction to FastAPI
  5. Chapter 1: Getting Started with FastAPI
  6. Chapter 2: Routing in FastAPI
  7. Chapter 3: Response Models and Error Handling
  8. Chapter 4: Templating in FastAPI
  9. Part 2: Building and Securing FastAPI Applications
  10. Chapter 5: Structuring FastAPI Applications
  11. Chapter 6: Connecting to a Database
  12. Chapter 7: Securing FastAPI Applications
  13. Part 3: Testing And Deploying FastAPI Applications
  14. Chapter 8: Testing FastAPI Applications
  15. Chapter 9: Deploying FastAPI Applications
  16. Other Books You May Enjoy