Building Python Web APIs with FastAPI: A fast-paced guide to building high-performance, robust web APIs with very little boilerplate code
暫譯: 使用 FastAPI 建立 Python 網路 API:快速構建高效能、穩健的網路 API 的指南,幾乎不需要樣板程式碼

Adeshina, Abdulazeez Abdulazeez

  • 出版商: Packt Publishing
  • 出版日期: 2022-07-29
  • 售價: $1,760
  • 貴賓價: 9.5$1,672
  • 語言: 英文
  • 頁數: 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 的 Python 開發者,輕鬆創建穩健的網路 API。如果您是 Django 或 Flask 開發者,想嘗試更快、更高效且產生更少錯誤的新技術,這本 FastAPI Python 書籍就是為您而寫。本書假設讀者具備中級 Python 程式設計知識。