@ -11,25 +11,25 @@
< em > FastAPI 框架,高效能,易於學習,快速開發,適用於生產環境< / em >
< / p >
< p align = "center" >
< a href = "https://github.com/fastapi/fastapi/actions?query=workflow%3ATest+event%3Apush+branch%3Amaster" target = "_blank" >
< a href = "https://github.com/fastapi/fastapi/actions?query=workflow%3ATest+event%3Apush+branch%3Amaster" >
< img src = "https://github.com/fastapi/fastapi/actions/workflows/test.yml/badge.svg?event=push&branch=master" alt = "Test" >
< / a >
< a href = "https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapi/fastapi" target = "_blank" >
< a href = "https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapi/fastapi" >
< img src = "https://coverage-badge.samuelcolvin.workers.dev/fastapi/fastapi.svg" alt = "Coverage" >
< / a >
< a href = "https://pypi.org/project/fastapi" target = "_blank" >
< a href = "https://pypi.org/project/fastapi" >
< img src = "https://img.shields.io/pypi/v/fastapi?color=%2334D058&label=pypi%20package" alt = "Package version" >
< / a >
< a href = "https://pypi.org/project/fastapi" target = "_blank" >
< a href = "https://pypi.org/project/fastapi" >
< img src = "https://img.shields.io/pypi/pyversions/fastapi.svg?color=%2334D058" alt = "Supported Python versions" >
< / a >
< / p >
---
**文件**: < a href = "https://fastapi.tiangolo.com/zh-hant" target = "_blank" > https://fastapi.tiangolo.com/zh-hant< / a >
**文件**: [https://fastapi.tiangolo.com/zh-hant ](https://fastapi.tiangolo.com/zh-hant )
**程式碼**: < a href = "https://github.com/fastapi/fastapi" target = "_blank" > https://github.com/fastapi/fastapi< / a >
**程式碼**: [https://github.com/fastapi/fastapi ](https://github.com/fastapi/fastapi )
---
@ -44,7 +44,7 @@ FastAPI 是一個現代、快速(高效能)的 Web 框架,用於以 Python
* **簡單** :設計上易於使用與學習。更少的讀文件時間。
* **簡潔** :最小化程式碼重複性。每個參數宣告可帶來多個功能。更少的錯誤。
* **穩健** :立即獲得可投入生產的程式碼,並自動生成互動式文件。
* **標準化** :基於(且完全相容於)API 的開放標準:< a href = "https://github.com/OAI/OpenAPI-Specification" class = "external-link" target = "_blank" > OpenAPI</ a > (之前稱為 Swagger)和 < a href = "https://json-schema.org/" class = "external-link" target = "_blank" > JSON Schema</ a > 。
* **標準化** :基於(且完全相容於)API 的開放標準:[OpenAPI](https://github.com/OAI/OpenAPI-Specification)(之前稱為 Swagger)和 [JSON Schema ](https://json-schema.org/ ) 。
< small > * 基於內部開發團隊在建立生產應用程式時的測試預估。< / small >
@ -55,51 +55,51 @@ FastAPI 是一個現代、快速(高效能)的 Web 框架,用於以 Python
### 基石贊助商 { #keystone -sponsor }
{% for sponsor in sponsors.keystone -%}
< a href = "{{ sponsor.url }}" target = "_blank" t itle = "{{ sponsor.title }}" > < img src = "{{ sponsor.img }}" style = "border-radius:15px" > < / a >
< a href = "{{ sponsor.url }}" title = "{{ sponsor.title }}" > < img src = "{{ sponsor.img }}" style = "border-radius:15px" > < / a >
{% endfor -%}
### 金級與銀級贊助商 { #gold -and-silver-sponsors }
{% for sponsor in sponsors.gold -%}
< a href = "{{ sponsor.url }}" target = "_blank" t itle = "{{ sponsor.title }}" > < img src = "{{ sponsor.img }}" style = "border-radius:15px" > < / a >
< a href = "{{ sponsor.url }}" title = "{{ sponsor.title }}" > < img src = "{{ sponsor.img }}" style = "border-radius:15px" > < / a >
{% endfor -%}
{%- for sponsor in sponsors.silver -%}
< a href = "{{ sponsor.url }}" target = "_blank" t itle = "{{ sponsor.title }}" > < img src = "{{ sponsor.img }}" style = "border-radius:15px" > < / a >
< a href = "{{ sponsor.url }}" title = "{{ sponsor.title }}" > < img src = "{{ sponsor.img }}" style = "border-radius:15px" > < / a >
{% endfor %}
<!-- /sponsors -->
< a href = "https://fastapi.tiangolo.com/zh-hant/fastapi-people/#sponsors" class = "external-link" target = "_blank" > 其他贊助商< / a >
[其他贊助商 ](https://fastapi.tiangolo.com/zh-hant/fastapi-people/#sponsors )
## 評價 { #opinions }
"_[...] 近期大量使用 **FastAPI** 。[...] 我實際上打算在我在**微軟**團隊的所有**機器學習**服務上使用它。其中一些正在整合到核心的 **Windows** 產品,以及一些 **Office** 產品。_"
< div style = "text-align: right; margin-right: 10%;" > Kabir Khan - < strong > Microsoft< / strong > < a href = "https://github.com/fastapi/fastapi/pull/26" target = "_blank" > < small > (ref)< / small > < / a > < / div >
< div style = "text-align: right; margin-right: 10%;" > Kabir Khan - < strong > Microsoft< / strong > < a href = "https://github.com/fastapi/fastapi/pull/26" > < small > (ref)< / small > < / a > < / div >
---
"_我們採用了 **FastAPI** 函式庫來啟動一個 **REST** 伺服器,供查詢以取得**預測**。[for Ludwig]_"
< div style = "text-align: right; margin-right: 10%;" > Piero Molino, Yaroslav Dudin, and Sai Sumanth Miryala - < strong > Uber< / strong > < a href = "https://eng.uber.com/ludwig-v0-2/" target = "_blank" > < small > (ref)< / small > < / a > < / div >
< div style = "text-align: right; margin-right: 10%;" > Piero Molino, Yaroslav Dudin, and Sai Sumanth Miryala - < strong > Uber< / strong > < a href = "https://eng.uber.com/ludwig-v0-2/" > < small > (ref)< / small > < / a > < / div >
---
"_**Netflix** 很高興宣布我們的**危機管理**協調框架 **Dispatch** 開源![使用 **FastAPI** 建構]_"
< div style = "text-align: right; margin-right: 10%;" > Kevin Glisson, Marc Vilanova, Forest Monsen - < strong > Netflix< / strong > < a href = "https://netflixtechblog.com/introducing-dispatch-da4b8a2a8072" target = "_blank" > < small > (ref)< / small > < / a > < / div >
< div style = "text-align: right; margin-right: 10%;" > Kevin Glisson, Marc Vilanova, Forest Monsen - < strong > Netflix< / strong > < a href = "https://netflixtechblog.com/introducing-dispatch-da4b8a2a8072" > < small > (ref)< / small > < / a > < / div >
---
"_我對 **FastAPI** 興奮得不得了。超好玩!_"
< div style = "text-align: right; margin-right: 10%;" > Brian Okken - < strong > < a href = "https://pythonbytes.fm/episodes/show/123/time-to-right-the-py-wrongs?time_in_sec=855" target = "_blank" > Python Bytes< / a > podcast 主持人< / strong > < a href = "https://x.com/brianokken/status/1112220079972728832" target = "_blank " > < small > (ref)< / small > < / a > < / div >
< div style = "text-align: right; margin-right: 10%;" > Brian Okken - < strong > [Python Bytes](https://pythonbytes.fm/episodes/show/123/time-to-right-the-py-wrongs?time_in_sec=855) podcast 主持人< / strong > < a href = "https://x.com/brianokken/status/1112220079972728832" > < small > (ref)< / small > < / a > < / div >
---
"_老實說,你們做的看起來非常穩健又精緻。很多方面都正是我希望 **Hug** 成為的樣子——看到有人把它建出來真的很鼓舞人心。_"
< div style = "text-align: right; margin-right: 10%;" > Timothy Crosley - < strong > < a href = "https://github.com/hugapi/hug" target = "_blank" > Hug< / a > 創作者< / strong > < a href = "https://news.ycombinator.com/item?id=19455465" target = "_blank " > < small > (ref)< / small > < / a > < / div >
< div style = "text-align: right; margin-right: 10%;" > Timothy Crosley - < strong > [Hug](https://github.com/hugapi/hug) 創作者< / strong > < a href = "https://news.ycombinator.com/item?id=19455465" > < small > (ref)< / small > < / a > < / div >
---
@ -107,27 +107,27 @@ FastAPI 是一個現代、快速(高效能)的 Web 框架,用於以 Python
"_我們的 **API** 已經改用 **FastAPI** [...] 我想你會喜歡它 [...]_"
< div style = "text-align: right; margin-right: 10%;" > Ines Montani - Matthew Honnibal - < strong > < a href = "https://explosion.ai" target = "_blank" > Explosion AI< / a > 創辦人 - < a href = "https://spacy.io" target = "_blank" > spaCy< / a > 創作者< / strong > < a href = "https://x.com/_inesmontani/status/1144173225322143744" target = "_blank" > < small > (ref)< / small > < / a > - < a href = "https://x.com/honnibal/status/1144031421859655680" target = "_blank" > < small > (ref)< / small > < / a > < / div >
< div style = "text-align: right; margin-right: 10%;" > Ines Montani - Matthew Honnibal - < strong > [Explosion AI](https://explosion.ai) 創辦人 - [spaCy ](https://spacy.io ) 創作者< /strong > < a href = "https://x.com/_inesmontani/status/1144173225322143744" >< small > (ref)</ small ></ a > - < a href = "https://x.com/honnibal/status/1144031421859655680" >< small > (ref)</ small ></ a ></ div >
---
"_如果有人想要建立一個可投入生產的 Python API,我強烈推薦 **FastAPI** 。它**設計精美**、**使用簡單**且**高度可擴充**,已成為我們 API 優先開發策略中的**關鍵組 件**,推動了許多自動化與服務,例如我們的 Virtual TAC Engineer。_"
"_如果有人想要打造一個可用於生產環境的 Python API,我強力推薦 **FastAPI** 。它**設計優雅**、**簡單易用**且**高度可擴展**,已經成為我們 API first 開發策略中的**關鍵元 件**,推動了許多自動化與服務,例如我們的 Virtual TAC Engineer。_"
< div style = "text-align: right; margin-right: 10%;" > Deon Pillsbury - < strong > Cisco< / strong > < a href = "https://www.linkedin.com/posts/deonpillsbury_cisco-cx-python-activity-6963242628536487936-trAp/" target = "_blank" > < small > (ref)< / small > < / a > < / div >
< div style = "text-align: right; margin-right: 10%;" > Deon Pillsbury - < strong > Cisco< / strong > < a href = "https://www.linkedin.com/posts/deonpillsbury_cisco-cx-python-activity-6963242628536487936-trAp/" > < small > (ref)< / small > < / a > < / div >
---
## FastAPI 迷你紀錄片 { #fastapi -mini-documentary }
在 2025 年底發布了一支 < a href = "https://www.youtube.com/watch?v=mpR8ngthqiE" class = "external-link" target = "_blank" > FastAPI 迷你紀錄片< / a > ,你可以在線上觀看:
在 2025 年底發布了一支 [FastAPI 迷你紀錄片 ](https://www.youtube.com/watch?v=mpR8ngthqiE ) ,你可以在線上觀看:
< a href = "https://www.youtube.com/watch?v=mpR8ngthqiE" target = "_blank" > < img src = "https://fastapi.tiangolo.com/img/fastapi-documentary.jpg" alt = "FastAPI Mini Documentary" > < / a >
< a href = "https://www.youtube.com/watch?v=mpR8ngthqiE" > < img src = "https://fastapi.tiangolo.com/img/fastapi-documentary.jpg" alt = "FastAPI Mini Documentary" > < / a >
## **Typer** ,命令列的 FastAPI { #typer -the-fastapi-of-clis }
< a href = "https://typer.tiangolo.com" target = "_blank" > < img src = "https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" style = "width: 20%;" > < / a >
< a href = "https://typer.tiangolo.com" > < img src = "https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" style = "width: 20%;" > < / a >
如果你不是在做 Web API,而是要建立一個在終端機中使用的 < abbr title = "Command Line Interface - 命令列介面" > CLI< / abbr > 應用程式,可以看看 < a href = "https://typer.tiangolo.com/" class = "external-link" target = "_blank" > **Typer**< / a > 。
如果你不是在做 Web API,而是要建立一個在終端機中使用的 < abbr title = "Command Line Interface - 命令列介面" > CLI</ abbr > 應用程式,可以看看 [**Typer** ](https://typer.tiangolo.com/ ) 。
**Typer** 是 FastAPI 的小老弟。他立志成為命令列世界的 **FastAPI** 。⌨️ 🚀
@ -135,12 +135,12 @@ FastAPI 是一個現代、快速(高效能)的 Web 框架,用於以 Python
FastAPI 是站在以下巨人的肩膀上:
* < a href = "https://www.starlette.dev/" class = "external-link" target = "_blank" > Starlette< / a > 負責 Web 部分。
* < a href = "https://docs.pydantic.dev/" class = "external-link" target = "_blank" > Pydantic< / a > 負責資料部分。
* [Starlette ](https://www.starlette.dev/ ) 負責 Web 部分。
* [Pydantic ](https://docs.pydantic.dev/ ) 負責資料部分。
## 安裝 { #installation }
建立並啟用一個< a href = "https://fastapi.tiangolo.com/zh-hant/virtual-environments/" class = "external-link" target = "_blank" > 虛擬環境< / a > ,然後安裝 FastAPI:
建立並啟用一個[虛擬環境](https://fastapi.tiangolo.com/zh-hant/virtual-environments/) ,然後安裝 FastAPI:
< div class = "termy" >
@ -199,7 +199,7 @@ async def read_item(item_id: int, q: str | None = None):
**注意**:
如果你不確定,請查看文件中 _"In a hurry?"_ 章節的 < a href = "https://fastapi.tiangolo.com/zh-hant/async/#in-a-hurry" target = "_blank" > `async` 與 `await` </ a > 。
如果你不確定,請查看文件中 _"In a hurry?"_ 章節的[關於文件中的 `async` 與 `await` ](https://fastapi.tiangolo.com/zh-hant/async/#in-a-hurry) 。
< / details >
@ -210,7 +210,7 @@ async def read_item(item_id: int, q: str | None = None):
< div class = "termy" >
```console
$ fastapi dev main.py
$ fastapi dev
╭────────── FastAPI CLI - Development mode ───────────╮
│ │
@ -235,19 +235,19 @@ INFO: Application startup complete.
< / div >
< details markdown = "1" >
< summary > 關於指令 < code > fastapi dev main.py < / code > ...< / summary >
< summary > 關於指令 < code > fastapi dev< / code > ...< / summary >
指令 `fastapi dev` 會讀取你的 `main.py` ,偵測其中的 **FastAPI** 應用,並使用 < a href = "https://www.uvicorn.dev" class = "external-link" target = "_blank" > Uvicorn</ a > 啟動伺服器。
指令 `fastapi dev` 會讀取你的 `main.py` ,偵測其中的 **FastAPI** 應用,並使用 [Uvicorn ](https://www.uvicorn.dev ) 啟動伺服器。
預設情況下,`fastapi dev` 會在本機開發時啟用自動重新載入。
可在 < a href = "https://fastapi.tiangolo.com/zh-hant/fastapi-cli/" target = "_blank" > FastAPI CLI 文件< / a > 中閱讀更多資訊。
可在 [FastAPI CLI 文件 ](https://fastapi.tiangolo.com/zh-hant/fastapi-cli/ ) 中閱讀更多資訊。
< / details >
### 檢查 { #check -it }
使用瀏覽器開啟 < a href = "http://127.0.0.1:8000/items/5?q=somequery" class = "external-link" target = "_blank" > http://127.0.0.1:8000/items/5?q=somequery< / a > 。
使用瀏覽器開啟 [http://127.0.0.1:8000/items/5?q=somequery ](http://127.0.0.1:8000/items/5?q=somequery ) 。
你將會看到以下 JSON 回應:
@ -264,17 +264,17 @@ INFO: Application startup complete.
### 互動式 API 文件 { #interactive -api-docs }
接著前往 < a href = "http://127.0.0.1:8000/docs" class = "external-link" target = "_blank" > http://127.0.0.1:8000/docs< / a > 。
接著前往 [http://127.0.0.1:8000/docs ](http://127.0.0.1:8000/docs ) 。
你會看到自動生成的互動式 API 文件(由 < a href = "https://github.com/swagger-api/swagger-ui" class = "external-link" target = "_blank" > Swagger UI< / a > 提供):
你會看到自動生成的互動式 API 文件(由 [Swagger UI ](https://github.com/swagger-api/swagger-ui ) 提供):

### 替代 API 文件 { #alternative -api-docs }
現在前往 < a href = "http://127.0.0.1:8000/redoc" class = "external-link" target = "_blank" > http://127.0.0.1:8000/redoc< / a > 。
現在前往 [http://127.0.0.1:8000/redoc ](http://127.0.0.1:8000/redoc ) 。
你會看到另一種自動文件(由 < a href = "https://github.com/Rebilly/ReDoc" class = "external-link" target = "_blank" > ReDoc< / a > 提供):
你會看到另一種自動文件(由 [ReDoc ](https://github.com/Rebilly/ReDoc ) 提供):

@ -316,7 +316,7 @@ def update_item(item_id: int, item: Item):
### 互動式 API 文件升級 { #interactive -api-docs-upgrade }
前往 < a href = "http://127.0.0.1:8000/docs" class = "external-link" target = "_blank" > http://127.0.0.1:8000/docs< / a > 。
前往 [http://127.0.0.1:8000/docs ](http://127.0.0.1:8000/docs ) 。
* 互動式 API 文件會自動更新,包含新的 body:
@ -332,7 +332,7 @@ def update_item(item_id: int, item: Item):
### 替代 API 文件升級 { #alternative -api-docs-upgrade }
現在前往 < a href = "http://127.0.0.1:8000/redoc" class = "external-link" target = "_blank" > http://127.0.0.1:8000/redoc< / a > 。
現在前往 [http://127.0.0.1:8000/redoc ](http://127.0.0.1:8000/redoc ) 。
* 替代文件也會反映新的查詢參數與 body:
@ -433,7 +433,7 @@ item: Item

若想看包含更多功能的完整範例,請參考 < a href = "https://fastapi.tiangolo.com/zh-hant/tutorial/" > 教學 - 使用者指南 < / a > 。
若想看包含更多功能的完整範例,請參考 < a href = "https://fastapi.tiangolo.com/zh-hant/tutorial/" > Tutorial - User Guide < / a > 。
**劇透警告**:教學 - 使用者指南包含:
@ -442,7 +442,7 @@ item: Item
* 一個非常強大且易用的 ** < dfn title = "也稱為:components、resources、providers、services、injectables" > 依賴注入</ dfn > ** 系統。
* 安全與驗證,包含支援 **OAuth2** 搭配 **JWT tokens** 與 **HTTP Basic** 驗證。
* 宣告**深度巢狀 JSON 模型**的進階(但同樣簡單)技巧(感謝 Pydantic)。
* 與 < a href = "https://strawberry.rocks" class = "external-link" target = "_blank" > Strawberry</ a > 及其他函式庫的 **GraphQL** 整合。
* 與 [Strawberry ](https://strawberry.rocks ) 及其他函式庫的 **GraphQL** 整合。
* 許多額外功能(感謝 Starlette),例如:
* * *WebSockets**
* 基於 HTTPX 與 `pytest` 的極其簡單的測試
@ -452,24 +452,10 @@ item: Item
### 部署你的應用(可選) { #deploy -your-app-optional }
你也可以選擇將 FastAPI 應用部署到 < a href = "https://fastapicloud.com" class = "external-link" target = "_blank" > FastAPI Cloud< / a > ,如果你還沒加入,去登記等候名單吧。🚀
你也可以選擇將 FastAPI 應用部署到 [FastAPI Cloud ](https://fastapicloud.com ) ,如果你還沒加入,去登記等候名單吧。🚀
如果你已經有 **FastAPI Cloud** 帳號(我們已從等候名單邀請你 😉),你可以用一個指令部署你的應用。
部署前,先確認你已登入:
< div class = "termy" >
```console
$ fastapi login
You are logged in to FastAPI Cloud 🚀
```
< / div >
接著部署你的應用:
< div class = "termy" >
```console
@ -488,7 +474,7 @@ Deploying to FastAPI Cloud...
#### 關於 FastAPI Cloud { #about -fastapi-cloud }
**< a href = "https://fastapicloud.com" class = "external-link" target = "_blank" > FastAPI Cloud</ a > ** 由 **FastAPI** 的同一位作者與團隊打造。
**[FastAPI Cloud](https://fastapicloud.com) ** 由 **FastAPI** 的同一位作者與團隊打造。
它讓你以最小的努力精簡地完成 API 的**建置**、**部署**與**存取**流程。
@ -504,9 +490,9 @@ FastAPI 是開源且基於標準。你可以把 FastAPI 應用部署到任何你
## 效能 { #performance }
獨立的 TechEmpower 基準測試顯示,在 Uvicorn 下運行的 **FastAPI** 應用是< a href = "https://www.techempower.com/benchmarks/#section=test&runid=7464e520-0dc2-473d-bd34-dbdfd7e85911&hw=ph&test=query&l=zijzen-7" class = "external-link" target = "_blank" > 最快的 Python 框架之一</ a > ,僅次於 Starlette 與 Uvicorn 本身(FastAPI 內部使用它們)。(*)
獨立的 TechEmpower 基準測試顯示,在 Uvicorn 下運行的 **FastAPI** 應用是[最快的 Python 框架之一](https://www.techempower.com/benchmarks/#section=test& runid=7464e520-0dc2-473d-bd34-dbdfd7e85911& hw=ph& test=query& l=zijzen-7) ,僅次於 Starlette 與 Uvicorn 本身(FastAPI 內部使用它們)。(*)
想了解更多,請參閱< a href = "https://fastapi.tiangolo.com/zh-hant/benchmarks/" class = "internal-link" target = "_blank" > 測試結果< / a > 。
想了解更多,請參閱[測試結果](https://fastapi.tiangolo.com/zh-hant/benchmarks/) 。
## 依賴套件 { #dependencies }
@ -518,19 +504,19 @@ FastAPI 依賴 Pydantic 與 Starlette。
Pydantic 會使用:
* < a href = "https://github.com/JoshData/python-email-validator" target = "_blank" > < code > email-validator< / code > < / a > - 用於電子郵件驗證。
* [`email-validator` ](https://github.com/JoshData/python-email-validator ) - 用於電子郵件驗證。
Starlette 會使用:
* < a href = "https://www.python-httpx.org" target = "_blank" >< code > httpx</ code ></ a > - 若要使用 `TestClient` 必須安裝。
* < a href = "https://jinja.palletsprojects.com" target = "_blank" > < code > jinja2< / code > < / a > - 若要使用預設的模板設定必須安裝。
* < a href = "https://github.com/Kludex/python-multipart" target = "_blank" >< code > python-multipart</ code ></ a > - 若要支援表單 < dfn title = "將來自 HTTP 請求的字串轉換為 Python 資料" > "解析"</ dfn > ,搭配 `request.form()` 。
* [`httpx` ](https://www.python-httpx.org ) - 若要使用 `TestClient` 必須安裝。
* [`jinja2` ](https://jinja.palletsprojects.com ) - 若要使用預設的模板設定必須安裝。
* [`python-multipart` ](https://github.com/Kludex/python-multipart ) - 若要支援表單 < dfn title = "將來自 HTTP 請求的字串轉換為 Python 資料" > "解析"</ dfn > ,搭配 `request.form()` 。
FastAPI 會使用:
* < a href = "https://www.uvicorn.dev" target = "_blank" >< code > uvicorn</ code ></ a > - 用於載入並服務你的應用的伺服器。這包含 `uvicorn[standard]` ,其中含有一些高效能服務所需的依賴(例如 `uvloop` )。
* [`uvicorn` ](https://www.uvicorn.dev ) - 用於載入並服務你的應用的伺服器。這包含 `uvicorn[standard]` ,其中含有一些高效能服務所需的依賴(例如 `uvloop` )。
* `fastapi-cli[standard]` - 提供 `fastapi` 指令。
* 其中包含 `fastapi-cloud-cli` ,可讓你將 FastAPI 應用部署到 < a href = "https://fastapicloud.com" class = "external-link" target = "_blank" > FastAPI Cloud</ a > 。
* 其中包含 `fastapi-cloud-cli` ,可讓你將 FastAPI 應用部署到 [FastAPI Cloud ](https://fastapicloud.com ) 。
### 不含 `standard` 依賴套件 { #without -standard-dependencies }
@ -546,13 +532,13 @@ FastAPI 會使用:
Pydantic 的額外可選依賴:
* < a href = "https://docs.pydantic.dev/latest/usage/pydantic_settings/" target = "_blank" > < code > pydantic-settings< / code > < / a > - 設定管理。
* < a href = "https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/" target = "_blank" > < code > pydantic-extra-types< / code > < / a > - 與 Pydantic 一起使用的額外型別。
* [`pydantic-settings` ](https://docs.pydantic.dev/latest/usage/pydantic_settings/ ) - 設定管理。
* [`pydantic-extra-types` ](https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/ ) - 與 Pydantic 一起使用的額外型別。
FastAPI 的額外可選依賴:
* < a href = "https://github.com/ijl/orjson" target = "_blank" >< code > orjson</ code ></ a > - 若要使用 `ORJSONResponse` 必須安裝。
* < a href = "https://github.com/esnme/ultrajson" target = "_blank" >< code > ujson</ code ></ a > - 若要使用 `UJSONResponse` 必須安裝。
* [`orjson` ](https://github.com/ijl/orjson ) - 若要使用 `ORJSONResponse` 必須安裝。
* [`ujson` ](https://github.com/esnme/ultrajson ) - 若要使用 `UJSONResponse` 必須安裝。
## 授權 { #license }