Course Code: fastapi
Duration: 14 hours
Prerequisites:
  • 了解API概念
  • Python 編程經驗

觀眾

  • 開發者
Overview:

FastAPI 是一个开源,高性能的网页框架,用于构建 APIs 与 Python. 它是由许多大型公司,如Uber, Netflix,和 Microsoft使用。

由教练引导,现场培训(在线或在线)旨在开发人员谁希望使用 FastAPI 与 Python 建立,测试和部署 RESTful APIs 更容易和更快。

在本研讨会结束后,参与者将能够:

  • 設置必要的開發環境,以使用 Python 和 FastAPI 開發 APIs。
  • 使用 FastAPI 函式庫更快速、更輕鬆地創建 APIs。
  • 學習如何基於 Pydantic 和 OpenAPI 創建數據模型和模式。
  • 使用 SQLAlchemy 將 APIs 連接到資料庫。
  • 使用 FastAPI 工具在 APIs 中實現安全性和身份驗證。
  • 構建容器鏡像並將 Web APIs 部署到雲端伺服器。

课程格式

  • 互動式講座與討論。
  • 大量練習與實踐。
  • 在即時實驗室環境中進行實際操作。

课程定制选项

  • 如需為本課程請求定制培訓,請聯繫我們以安排。
Course Outline:

介紹

  • FastAPI vs Django vs Flask
  • FastAPI 的功能和優勢概述

開始

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

路徑和查詢參數

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

使用 Pydantic 模型聲明請求正文

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

定義表單和檔

  • 使用表單字段代替 JSON
  • 創建文件參數
  • 使用文件和表單參數

處理錯誤

  • 使用 HTTPException
  • 添加自定義標頭
  • 安裝自定義異常處理程序
  • 覆蓋默認異常處理程序

使用 Databases

  • ORMs 和文件結構
  • 創建 SQLAlchemy 部件
  • 創建數據庫模型
  • 創建 Pydantic 模型
  • 執行 CRUD 操作
  • 創建表格、依賴項和路徑操作
  • 檢查和審查文件
  • 與數據庫交互

安全和身份驗證

  • 使用 Oauth2 和 OpenID connect
  • 使用 OpenAPI 定義多種安全方案
  • 使用 FastAPI 工具

部署

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

故障排除

摘要和後續步驟

Sites Published:

United Arab Emirates - Developing APIs with Python and FastAPI

Qatar - Developing APIs with Python and FastAPI

Egypt - Developing APIs with Python and FastAPI

Saudi Arabia - Developing APIs with Python and FastAPI

South Africa - Developing APIs with Python and FastAPI

Brasil - Developing APIs with Python and FastAPI

Canada - Developing APIs with Python and FastAPI

中国 - Developing APIs with Python and FastAPI

香港 - Developing APIs with Python and FastAPI

澳門 - Developing APIs with Python and FastAPI

台灣 - Developing APIs with Python and FastAPI

USA - Developing APIs with Python and FastAPI

Österreich - Developing APIs with Python and FastAPI

Schweiz - Developing APIs with Python and FastAPI

Deutschland - Developing APIs with Python and FastAPI

Czech Republic - Developing APIs with Python and FastAPI

Denmark - Developing APIs with Python and FastAPI

Estonia - Developing APIs with Python and FastAPI

Finland - Developing APIs with Python and FastAPI

Greece - Developing APIs with Python and FastAPI

Magyarország - Developing APIs with Python and FastAPI

Ireland - Developing APIs with Python and FastAPI

Luxembourg - Developing APIs with Python and FastAPI

Latvia - Developing APIs with Python and FastAPI

España - Developing APIs with Python and FastAPI

Italia - Developing APIs with Python and FastAPI

Lithuania - Developing APIs with Python and FastAPI

Nederland - Developing APIs with Python and FastAPI

Norway - Developing APIs with Python and FastAPI

Portugal - Developing APIs with Python and FastAPI

România - Developing APIs with Python and FastAPI

Sverige - Developing APIs with Python and FastAPI

Türkiye - Developing APIs with Python and FastAPI

Malta - Developing APIs with Python and FastAPI

Belgique - Developing APIs with Python and FastAPI

France - Developing APIs with Python and FastAPI

日本 - Developing APIs with Python and FastAPI

Australia - Developing APIs with Python and FastAPI

Malaysia - Developing APIs with Python and FastAPI

New Zealand - Developing APIs with Python and FastAPI

Philippines - Developing APIs with Python and FastAPI

Singapore - Developing APIs with Python and FastAPI

Thailand - Developing APIs with Python and FastAPI

Vietnam - Developing APIs with Python and FastAPI

India - Developing APIs with Python and FastAPI

Argentina - Developing APIs with Python and FastAPI

Chile - Developing APIs with Python and FastAPI

Costa Rica - Developing APIs with Python and FastAPI

Ecuador - Developing APIs with Python and FastAPI

Guatemala - Developing APIs with Python and FastAPI

Colombia - Developing APIs with Python and FastAPI

México - Developing APIs with Python and FastAPI

Panama - Developing APIs with Python and FastAPI

Peru - Developing APIs with Python and FastAPI

Uruguay - Developing APIs with Python and FastAPI

Venezuela - Developing APIs with Python and FastAPI

Polska - Developing APIs with Python and FastAPI

United Kingdom - Developing APIs with Python and FastAPI

South Korea - Developing APIs with Python and FastAPI

Pakistan - Developing APIs with Python and FastAPI

Sri Lanka - Developing APIs with Python and FastAPI

Bulgaria - Developing APIs with Python and FastAPI

Bolivia - Developing APIs with Python and FastAPI

Indonesia - Developing APIs with Python and FastAPI

Kazakhstan - Developing APIs with Python and FastAPI

Moldova - Developing APIs with Python and FastAPI

Morocco - Developing APIs with Python and FastAPI

Tunisia - Developing APIs with Python and FastAPI

Kuwait - Developing APIs with Python and FastAPI

Oman - Developing APIs with Python and FastAPI

Slovakia - Developing APIs with Python and FastAPI

Kenya - Developing APIs with Python and FastAPI

Nigeria - Developing APIs with Python and FastAPI

Botswana - Developing APIs with Python and FastAPI

Slovenia - Developing APIs with Python and FastAPI

Croatia - Developing APIs with Python and FastAPI

Serbia - Developing APIs with Python and FastAPI

Bhutan - Developing APIs with Python and FastAPI

Nepal - Developing APIs with Python and FastAPI

Uzbekistan - Developing APIs with Python and FastAPI