- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 874 for tutorial001 (0.17 sec)
-
docs/en/docs/tutorial/request-files.md
``` //// //// tab | Python 3.8+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```Python hl_lines="1" {!> ../../docs_src/request_files/tutorial001.py!} ``` //// ## Define `File` Parameters Create file parameters the same way you would for `Body` or `Form`: //// tab | Python 3.9+ ```Python hl_lines="9"
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/de/docs/how-to/separate-openapi-schemas.md
</details> //// //// tab | Python 3.8+ ```Python hl_lines="9" {!> ../../docs_src/separate_openapi_schemas/tutorial001.py[ln:1-9]!} # Code unterhalb weggelassen 👇 ``` <details> <summary>👀 Vollständige Dateivorschau</summary> ```Python {!> ../../docs_src/separate_openapi_schemas/tutorial001.py!} ``` </details> //// ### Modell für Eingabe
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7K bytes - Viewed (0) -
docs/de/docs/how-to/extending-openapi.md
```Python hl_lines="1 4 7-9" {!../../docs_src/extending_openapi/tutorial001.py!} ``` ### Das OpenAPI-Schema generieren Verwenden Sie dann dieselbe Hilfsfunktion, um das OpenAPI-Schema innerhalb einer `custom_openapi()`-Funktion zu generieren: ```Python hl_lines="2 15-21" {!../../docs_src/extending_openapi/tutorial001.py!} ``` ### Das OpenAPI-Schema ändern
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.7K bytes - Viewed (0) -
docs/em/docs/tutorial/header-params.md
# 🎚 🔢 👆 💪 🔬 🎚 🔢 🎏 🌌 👆 🔬 `Query`, `Path` & `Cookie` 🔢. ## 🗄 `Header` 🥇 🗄 `Header`: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="3" {!> ../../docs_src/header_params/tutorial001.py!} ``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="1" {!> ../../docs_src/header_params/tutorial001_py310.py!} ``` //// ## 📣 `Header` 🔢
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/uk/docs/tutorial/first-steps.md
```Python hl_lines="7" {!../../docs_src/first_steps/tutorial003.py!} ``` /// note | "Примітка" Якщо не знаєте в чому різниця, подивіться [Конкурентність: *"Поспішаєш?"*](../async.md#in-a-hurry){.internal-link target=_blank}. /// ### Крок 5: поверніть результат ```Python hl_lines="8" {!../../docs_src/first_steps/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-forms-and-files.md
例如,`pip install python-multipart`。 /// ## 导入 `File` 与 `Form` ```Python hl_lines="1" {!../../docs_src/request_forms_and_files/tutorial001.py!} ``` ## 定义 `File` 与 `Form` 参数 创建文件和表单参数的方式与 `Body` 和 `Query` 一样: ```Python hl_lines="8" {!../../docs_src/request_forms_and_files/tutorial001.py!} ``` 文件和表单字段作为表单数据上传与接收。 声明文件可以使用 `bytes` 或 `UploadFile` 。 /// warning | "警告"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_conditional_openapi/test_tutorial001.py
import importlib from fastapi.testclient import TestClient from ...utils import needs_pydanticv2 def get_client() -> TestClient: from docs_src.conditional_openapi import tutorial001 importlib.reload(tutorial001) client = TestClient(tutorial001.app) return client @needs_pydanticv2 def test_disable_openapi(monkeypatch): monkeypatch.setenv("OPENAPI_URL", "") # Load the client after setting the env var
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 1.8K bytes - Viewed (0) -
docs/de/docs/tutorial/background-tasks.md
```Python hl_lines="6-9" {!../../docs_src/background_tasks/tutorial001.py!} ``` ## Den Hintergrundtask hinzufügen Übergeben Sie innerhalb Ihrer *Pfadoperation-Funktion* Ihre Taskfunktion mit der Methode `.add_task()` an das *Hintergrundtasks*-Objekt: ```Python hl_lines="14" {!../../docs_src/background_tasks/tutorial001.py!} ``` `.add_task()` erhält als Argumente:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.4K bytes - Viewed (0) -
docs/en/docs/advanced/websockets.md
```Python hl_lines="2 6-38 41-43" {!../../docs_src/websockets/tutorial001.py!} ``` ## Create a `websocket` In your **FastAPI** application, create a `websocket`: ```Python hl_lines="1 46-47" {!../../docs_src/websockets/tutorial001.py!} ``` /// note | "Technical Details" You could also use `from starlette.websockets import WebSocket`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.3K bytes - Viewed (0) -
docs/em/docs/tutorial/handling-errors.md
💭 🌐 👈 **"4️⃣0️⃣4️⃣ 🚫 🔎"** ❌ (& 🤣) ❓ ## ⚙️ `HTTPException` 📨 🇺🇸🔍 📨 ⏮️ ❌ 👩💻 👆 ⚙️ `HTTPException`. ### 🗄 `HTTPException` ```Python hl_lines="1" {!../../docs_src/handling_errors/tutorial001.py!} ``` ### 🤚 `HTTPException` 👆 📟 `HTTPException` 😐 🐍 ⚠ ⏮️ 🌖 📊 🔗 🔗. ↩️ ⚫️ 🐍 ⚠, 👆 🚫 `return` ⚫️, 👆 `raise` ⚫️.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.3K bytes - Viewed (0)