- Sort Score
- Result 10 results
- Languages All
Results 1561 - 1570 of 1,989 for py$ (0.02 sec)
-
docs/pt/docs/tutorial/handling-errors.md
## Use o `HTTPException` Para retornar ao cliente *responses* HTTP com erros, use o `HTTPException`. ### Import `HTTPException` ```Python hl_lines="1" {!../../docs_src/handling_errors/tutorial001.py!} ``` ### Lance o `HTTPException` no seu código. `HTTPException`, ao fundo, nada mais é do que a conjunção entre uma exceção comum do Python e informações adicionais relevantes para APIs.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10K bytes - Viewed (0) -
docs/zh-hant/docs/tutorial/index.md
它也被設計成可作為未來的參考,讓你隨時回來查看所需的內容。 ## 運行程式碼 所有程式碼區塊都可以直接複製和使用(它們實際上是經過測試的 Python 檔案)。 要運行任何範例,請將程式碼複製到 `main.py` 檔案,並使用以下命令啟動 `fastapi dev`: <div class="termy"> ```console $ <font color="#4E9A06">fastapi</font> dev <u style="text-decoration-style:single">main.py</u> <font color="#3465A4">INFO </font> Using path <font color="#3465A4">main.py</font>
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 24 18:28:00 UTC 2024 - 5.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/debugging.md
{!../../docs_src/debugging/tutorial001.py!} ``` ### `__name__ == "__main__"` について `__name__ == "__main__"` の主な目的は、ファイルが次のコマンドで呼び出されたときに実行されるコードを用意することです: <div class="termy"> ```console $ python myapp.py ``` </div> ただし、次のように、別のファイルからインポートされるときには呼び出されません: ```Python from myapp import app ``` #### より詳しい説明 ファイルの名前が `myapp.py` だとします。 以下の様に実行する場合:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-fields.md
```Python hl_lines="4" {!> ../../docs_src/body_fields/tutorial001_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="4" {!> ../../docs_src/body_fields/tutorial001_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="4" {!> ../../docs_src/body_fields/tutorial001_an.py!} ``` //// //// tab | Python 3.10+ non-Annotated /// tip
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.9K bytes - Viewed (0) -
docs/em/docs/how-to/extending-openapi.md
{!../../docs_src/extending_openapi/tutorial001.py!} ``` ### 🏗 🗄 🔗 ⤴️, ⚙️ 🎏 🚙 🔢 🏗 🗄 🔗, 🔘 `custom_openapi()` 🔢: ```Python hl_lines="2 15-20" {!../../docs_src/extending_openapi/tutorial001.py!} ``` ### 🔀 🗄 🔗 🔜 👆 💪 🚮 📄 ↔, ❎ 🛃 `x-logo` `info` "🎚" 🗄 🔗: ```Python hl_lines="21-23" {!../../docs_src/extending_openapi/tutorial001.py!} ``` ### 💾 🗄 🔗
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.7K bytes - Viewed (0) -
docs/de/docs/tutorial/security/first-steps.md
## `main.py` erstellen Kopieren Sie das Beispiel in eine Datei `main.py`: //// tab | Python 3.9+ ```Python {!> ../../docs_src/security/tutorial001_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python {!> ../../docs_src/security/tutorial001_an.py!} ``` //// //// tab | Python 3.8+ nicht annotiert
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.2K bytes - Viewed (0) -
docs/zh/docs/advanced/custom-response.md
```Python hl_lines="1 18" {!../../docs_src/response_directly/tutorial002.py!} ``` ### `HTMLResponse` 如上文所述,接受文本或字节并返回 HTML 响应。 ### `PlainTextResponse` 接受文本或字节并返回纯文本响应。 ```Python hl_lines="2 7 9" {!../../docs_src/custom_response/tutorial005.py!} ``` ### `JSONResponse` 接受数据并返回一个 `application/json` 编码的响应。 如上文所述,这是 **FastAPI** 中使用的默认响应。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
docs/fa/docs/advanced/sub-applications.md
```Python hl_lines="3 6-8" {!../../docs_src/sub_applications/tutorial001.py!} ``` ### زیر برنامه سپس، زیر برنامه خود و path operations آن را ایجاد کنید. این زیر برنامه فقط یکی دیگر از برنامه های استاندارد FastAPI است، اما این برنامه ای است که متصل می شود: ```Python hl_lines="11 14-16" {!../../docs_src/sub_applications/tutorial001.py!} ``` ### اتصال زیر برنامه
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
docs/pt/docs/advanced/behind-a-proxy.md
Aqui estamos incluindo ele na mensagem apenas para fins de demonstração. {* ../../docs_src/behind_a_proxy/tutorial001.py hl[8] *} Então, se você iniciar o Uvicorn com: <div class="termy"> ```console $ fastapi run main.py --root-path /api/v1 <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ``` </div>
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:28:18 UTC 2024 - 12.2K bytes - Viewed (0) -
docs/uk/docs/python-types.md
```Python hl_lines="1 4" {!> ../../docs_src/python_types/tutorial009.py!} ``` //// //// tab | Python 3.8 і вище - альтернатива ```Python hl_lines="1 4" {!> ../../docs_src/python_types/tutorial009b.py!} ``` //// //// tab | Python 3.10 і вище ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial009_py310.py!} ``` //// #### Generic типи
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.5K bytes - Viewed (0)