感謝您提交詢問!我們的一位團隊成員將在短時間內與您聯繫。
感謝您提交預訂!我們的一位團隊成員將在短時間內與您聯繫。
課程簡介
介紹
- FastAPI與Django、Flask的比較
- FastAPI的功能和優勢概述
入門
- 安裝FastAPI
- 使用OpenAPI定義模式
路徑和查詢參數
- 聲明路徑參數類型
- 解析和驗證數據
- 聲明必需和可選參數
- 轉換查詢參數類型
- 多個路徑和查詢參數
使用Pydantic模型聲明請求體
- 創建數據模型
- 組合路徑、查詢和請求體參數
- 聲明驗證和元數據
- 使用深度嵌套的模型
- 定義示例數據
- 響應和額外模型
定義表單和文件
- 使用表單字段代替JSON
- 創建文件參數
- 使用文件和表單參數
錯誤處理
- 使用HTTPException
- 添加自定義標頭
- 安裝自定義異常處理程序
- 覆蓋默認異常處理程序
數據庫操作
- ORM和文件結構
- 創建SQLAlchemy部件
- 創建數據庫模型
- 創建Pydantic模型
- 執行CRUD操作
- 創建表、依賴項和路徑操作
- 檢查和審覈文件
- 與數據庫交互
安全與身份驗證
- 使用Oauth2和OpenID連接
- 使用OpenAPI定義多種安全方案
- 使用FastAPI工具
部署
- 部署概念、階段和工具
- 使用Gunicorn和Uvicorn
- 使用容器系統(Docker和Kubernetes)
故障排除
總結與下一步
最低要求
- 瞭解API概念
- 具備Python編程經驗
受衆
- 開發者
14 時間:
客戶評論 (4)
培訓師非常樂意回答我所做的所有問題
Caterina - Stamtech
課程 - Developing APIs with Python and FastAPI
機器翻譯
We were able to quickly get hands on into code, which helped reinforce concepts learned in lecture slides
Keith - Procter & Gamble Polska Sp. z o.o.
課程 - Developing APIs with Python and FastAPI
The structured way of the e2e traing. Exercises allow touch the code to prepare some basics api also lectures touch details to which we need pay special attenstion during developig the api
Piotr - Procter & Gamble Polska Sp. z o.o.
課程 - Developing APIs with Python and FastAPI
Very good preparation and expertise of a trainer, perfect communication in English. The course was practical (exercises + sharing examples of use cases)