課程簡介

介紹

  • FastAPI 與 Django 與 Flask
  • FastAPI 特性和優勢概述

開始

  • 安裝 FastAPI
  • 使用 OpenAPI 定義架構

路徑和查詢參數

  • 聲明路徑參數類型
  • 解析和驗證數據
  • 聲明必需參數和可選參數
  • 轉換查詢參數類型
  • 多個路徑和查詢參數

使用 Pydantic 模型聲明請求正文

  • 創建數據模型
  • 組合路徑、查詢和正文參數
  • 聲明驗證和元數據
  • 使用深度嵌套模型
  • 定義範例數據
  • 回應和額外模型

定義表單和檔

  • 使用表單欄位而不是 JSON
  • 創建檔案參數
  • 使用檔和表單參數

處理錯誤

  • 使用 HTTPException
  • 添加自訂標頭
  • 安裝自定義異常處理程式
  • 重寫預設異常處理程式

使用 Databases

  • ORM 和文件結構
  • 創建 SQLAlchemy parts
  • 創建資料庫模型
  • 創建 Pydantic 模型
  • 執行 CRUD 操作
  • 創建表、依賴項和路徑操作
  • 查看和檢查檔
  • 與資料庫交互

安全和身份驗證

  • 使用 Oauth2 和 OpenID 連接
  • 使用 OpenAPI 定義多個安全方案
  • 使用 FastAPI 實用程式

部署

  • 部署概念、階段和工具
  • 與 Gunicorn 和 Uvicorn 合作
  • 使用容器系統(Docker 和 Kubernetes)

故障排除

摘要和後續步驟

最低要求

  • 瞭解 API 概念
  • Python 程式設計經驗

觀眾

  • 開發人員
 14 時間:

客戶評論 (1)

相關課程

FARM (FastAPI, React, and MongoDB) Full Stack Development

14 時間:

Introduction to Data Science and AI using Python

35 時間:

Algorithmic Trading with Python and R

14 時間:

Anomaly Detection with Python and R

14 時間:

Applied AI from Scratch in Python

28 時間:

ArcGIS with Python Scripting

14 時間:

BDD with Python and Behave

7 時間:

Bioinformatics with Biopython

14 時間:

Building Chatbots in Python

21 時間:

Continuous Integration / Continuous Delivery (CI/CD) with Python

14 時間:

GPU Programming with CUDA and Python

14 時間:

Data Mining with Python

14 時間:

Deep Learning for Banking (with Python)

28 時間:

Deep Learning for Finance (with Python)

28 時間:

Deep Learning for Telecom (with Python)

28 時間:

課程分類