FastAPI: Modern Python Web Development (Paperback)

Lubanovic, Bill

  • 出版商: O'Reilly
  • 出版日期: 2023-12-12
  • 定價: $1,998
  • 售價: 9.5$1,898
  • 貴賓價: 9.0$1,798
  • 語言: 英文
  • 頁數: 277
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1098135504
  • ISBN-13: 9781098135508
  • 相關分類: Python程式語言
  • 立即出貨

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

商品描述

FastAPI is a young yet solid framework that takes advantage of newer Python features in a clean design. As its name implies, FastAPI is indeed fast, rivaling similar frameworks in languages such as Golang. With this practical book, developers familiar with Python will learn how FastAPI lets you accomplish more in less time with less code.

Author Bill Lubanovic covers the nuts and bolts of FastAPI development with how-to guides on various topics such as forms, database access, graphics, maps, and more that will take you beyond the basics. This book also includes how-to guides that will get you up to speed on RESTful APIs, data validation, authorization, and performance. With its similarities to frameworks like Flask and Django, you'll find it easy to get started with FastAPI.

Through the course of this book, you will:

  • Learn how to build web applications with FastAPI
  • Understand the differences between FastAPI, Starlette, and pydantic
  • Learn two features that set FastAPI apart: asynchronous functions and data type checking and validation
  • Examine new features of Python 3.8+, especially type annotations
  • Understand the differences between sync and async Python
  • Learn how to connect with external APIs and services

商品描述(中文翻譯)

FastAPI是一個年輕但堅實的框架,利用Python的新功能以乾淨的設計來發揮優勢。正如其名所示,FastAPI確實快速,可以與Golang等語言的類似框架相媲美。通過這本實用書,熟悉Python的開發人員將學習如何使用FastAPI以更少的代碼在更短的時間內完成更多工作。

作者Bill Lubanovic涵蓋了FastAPI開發的基礎知識,包括表單、數據庫訪問、圖形、地圖等各種主題的操作指南,使您能夠超越基礎知識。本書還包括操作指南,讓您快速掌握RESTful API、數據驗證、授權和性能等知識。由於與Flask和Django等框架相似,您會發現使用FastAPI很容易入門。

在本書的過程中,您將會:

- 學習如何使用FastAPI構建Web應用程序
- 理解FastAPI、Starlette和pydantic之間的區別
- 學習兩個使FastAPI與眾不同的功能:異步函數和數據類型檢查和驗證
- 檢視Python 3.8+的新功能,特別是類型註釋
- 理解同步和異步Python之間的區別
- 學習如何與外部API和服務進行連接