Building Python Web APIs with FastAPI: A fast-paced guide to building high-performance, robust web APIs with very little boilerplate code

Adeshina, Abdulazeez Abdulazeez

  • 出版商: Packt Publishing
  • 出版日期: 2022-07-29
  • 售價: $1,650
  • 貴賓價: 9.5$1,568
  • 語言: 英文
  • 頁數: 216
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1801076634
  • ISBN-13: 9781801076630
  • 相關分類: Python程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Discover FastAPI features and best practices for building and deploying high-quality web APIs from scratch


Key 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 applications


Book Description:

RESTful 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 platform


Who this book is for:

This 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.

商品描述(中文翻譯)

發現 FastAPI 的功能和建立高品質網路 API 的最佳實踐
主要特點:
- 以 Python 快速開發生產就緒的網路 API 的實用指南
- 學習如何在真實場景中實踐 FastAPI
- 探索 FastAPI、其語法和配置以部署應用程式

書籍描述:
由於其輕量且高可擴展性,RESTful 網路服務常用於為基於網路的應用程式建立 API。本書將向您展示如何使用 FastAPI,一個用於在 Python 中建立 RESTful API 的高效能網路框架,讓您能夠建立簡單直觀、且幾乎不需要冗長程式碼的強大網路 API。

本書將幫助您在短時間內建立 FastAPI 應用程式,並向您展示如何使用 FastAPI 建立一個能夠接收和回應使用者請求的 REST API。您將學習在 FastAPI 應用程式中處理路由和身份驗證,同時使用資料庫。本書將引導您完成以下四個關鍵領域:建立和使用路由進行建立、讀取、更新和刪除 (CRUD) 操作;將應用程式連接到 SQL 和 NoSQL 資料庫;保護所建立的應用程式;以及在本機或雲環境中部署應用程式。

通過閱讀本書,您將對 FastAPI 框架有深入的了解,並能夠建立和部署強大的 REST API。

學到什麼:
- 建立功能完整且安全的 FastAPI 應用程式
- 了解如何處理來自請求的錯誤並在 FastAPI 中發送正確的回應
- 整合並連接應用程式到 SQL 和 NoSQL (MongoDB) 資料庫
- 使用 SQL 和 FastAPI 執行 CRUD 操作
- 在 FastAPI 應用程式中管理並行處理
- 在 FastAPI 應用程式中實現身份驗證
- 將 FastAPI 應用程式部署到任何平台

適合對象:
本書適合希望以實用方式學習 FastAPI 並輕鬆建立強大網路 API 的 Python 開發人員。如果您是 Django 或 Flask 開發人員,並希望嘗試更快、更高效且產生較少錯誤的新技術,那麼這本 FastAPI Python 書籍適合您。本書假設讀者具備中級 Python 編程知識。