- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 871 for tutorial001 (0.17 sec)
-
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 Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7K bytes - Viewed (0) -
docs/em/docs/advanced/websockets.md
🏭 👆 🔜 ✔️ 1️⃣ 🎛 🔛. ✋️ ⚫️ 🙅 🌌 🎯 🔛 💽-🚄 *️⃣ & ✔️ 👷 🖼: ```Python hl_lines="2 6-38 41-43" {!../../docs_src/websockets/tutorial001.py!} ``` ## ✍ `websocket` 👆 **FastAPI** 🈸, ✍ `websocket`: ```Python hl_lines="1 46-47" {!../../docs_src/websockets/tutorial001.py!} ``` /// note | "📡 ℹ" 👆 💪 ⚙️ `from starlette.websockets import WebSocket`.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/first-steps.md
```Python hl_lines="1" {!../../docs_src/first_steps/tutorial001.py!} ``` `FastAPI` 是一个为你的 API 提供了所有功能的 Python 类。 /// note | "技术细节" `FastAPI` 是直接从 `Starlette` 继承的类。 你可以通过 `FastAPI` 使用所有的 Starlette 的功能。 /// ### 步骤 2:创建一个 `FastAPI`「实例」 ```Python hl_lines="3" {!../../docs_src/first_steps/tutorial001.py!} ``` 这里的变量 `app` 会是 `FastAPI` 类的一个「实例」。
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/em/docs/tutorial/body.md
/// ## 🗄 Pydantic `BaseModel` 🥇, 👆 💪 🗄 `BaseModel` ⚪️➡️ `pydantic`: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="4" {!> ../../docs_src/body/tutorial001.py!} ``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="2" {!> ../../docs_src/body/tutorial001_py310.py!} ``` //// ## ✍ 👆 💽 🏷
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.4K 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 Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.7K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params-numeric-validations.md
```Python hl_lines="7" {!../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ## 数值校验:大于等于 使用 `Query` 和 `Path`(以及你将在后面看到的其他类)可以声明字符串约束,但也可以声明数值约束。 像下面这样,添加 `ge=1` 后,`item_id` 将必须是一个大于(`g`reater than)或等于(`e`qual)`1` 的整数。 ```Python hl_lines="8" {!../../docs_src/path_params_numeric_validations/tutorial004.py!} ``` ## 数值校验:大于和小于等于 同样的规则适用于:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/first-steps.md
```Python hl_lines="7" {!../../docs_src/first_steps/tutorial001.py!} ``` 이것은 파이썬 함수입니다. URL "`/`"에 대한 `GET` 작동을 사용하는 요청을 받을 때마다 **FastAPI**에 의해 호출됩니다. 위의 예시에서 이 함수는 `async`(비동기) 함수입니다. --- `async def`을 이용하는 대신 일반 함수로 정의할 수 있습니다: ```Python hl_lines="7" {!../../docs_src/first_steps/tutorial003.py!} ``` /// note | "참고"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.4K bytes - Viewed (0) -
docs/en/docs/tutorial/body.md
//// tab | Python 3.10+ ```Python hl_lines="2" {!> ../../docs_src/body/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="4" {!> ../../docs_src/body/tutorial001.py!} ``` //// ## Create your data model Then you declare your data model as a class that inherits from `BaseModel`. Use standard Python types for all the attributes: //// tab | Python 3.10+
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.5K bytes - Viewed (0) -
docs/fr/docs/tutorial/body.md
```Python hl_lines="4" {!../../docs_src/body/tutorial001.py!} ``` ## Créez votre modèle de données Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`. Utilisez les types Python standard pour tous les attributs : ```Python hl_lines="7-11" {!../../docs_src/body/tutorial001.py!} ```
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/uk/docs/python-types.md
```Python hl_lines="1" {!../../docs_src/python_types/tutorial003.py!} ``` Оскільки редактор знає типи змінних, ви не тільки отримаєте автозаповнення, ви також отримаєте перевірку помилок: <img src="/img/python-types/image04.png"> Тепер ви знаєте, щоб виправити це, вам потрібно перетворити `age` у строку з допомогою `str(age)`: ```Python hl_lines="2" {!../../docs_src/python_types/tutorial004.py!} ``` ## Оголошення типів
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.5K bytes - Viewed (0)