- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 169 for url_lines (0.05 sec)
-
docs/en/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # Do some asynchronous stuff to create the burgers return burgers ``` ...instead of `def`: ```Python hl_lines="2" # This is not asynchronous def get_sequential_burgers(number: int): # Do some sequential stuff to create the burgers
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 24K bytes - Viewed (0) -
docs/de/docs/tutorial/body-nested-models.md
{* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *} Das wird einen JSON-Body erwarten (konvertieren, validieren, dokumentieren, usw.) wie: ```JSON hl_lines="11" { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2, "tags": [ "rock", "metal", "bar" ], "images": [Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/testing.md
│ └── main.py ``` 在 `main.py` 文件中你有一个 **FastAPI** app: {* ../../docs_src/app_testing/main.py *} ### 测试文件 然后你会有一个包含测试的文件 `test_main.py` 。app可以像Python包那样存在(一样是目录,但有个 `__init__.py` 文件): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` 因为这文件在同一个包中,所以你可以通过相对导入从 `main` 模块(`main.py`)导入`app`对象: {* ../../docs_src/app_testing/test_main.py hl[3] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 5.9K bytes - Viewed (0) -
docs/zh/docs/tutorial/response-model.md
/// #### 默认值字段有实际值的数据 但是,如果你的数据在具有默认值的模型字段中有实际的值,例如 ID 为 `bar` 的项: ```Python hl_lines="3 5" { "name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2 } ``` 这些值将包含在响应中。 #### 具有与默认值相同值的数据 如果数据具有与默认值相同的值,例如 ID 为 `baz` 的项: ```Python hl_lines="3 5-6" { "name": "Baz", "description": None, "price": 50.2,Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/uk/docs/tutorial/body-multiple-params.md
item: Item = Body(embed=True) ``` як у прикладі: {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *} У цьому випадку **FastAPI** очікуватиме тіло запиту такого вигляду: ```JSON hl_lines="2" { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } } ``` замість: ```JSON {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Feb 28 14:19:00 UTC 2025 - 7.4K bytes - Viewed (0) -
docs/zh-hant/docs/async.md
然後,使用 `async def` 宣告你的*路徑操作函式*: ```Python hl_lines="2" @app.get('/') async def read_results(): results = await some_library() return results ``` /// note | 注意 你只能在 `async def` 建立的函式內使用 `await`。 /// --- 如果你使用的是第三方函式庫並且它需要與某些外部資源(例如資料庫、API、檔案系統等)進行通訊,但不支援 `await`(目前大多數資料庫函式庫都是這樣),在這種情況下,你可以像平常一樣使用 `def` 宣告*路徑操作函式*,如下所示: ```Python hl_lines="2" @app.get('/') def results():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 21.1K bytes - Viewed (0) -
docs/zh/docs/async.md
``` 然后,通过 `async def` 声明你的 *路径操作函数*: ```Python hl_lines="2" @app.get('/') async def read_results(): results = await some_library() return results ``` /// note 你只能在被 `async def` 创建的函数内使用 `await` /// --- 如果你正在使用一个第三方库和某些组件(比如:数据库、API、文件系统...)进行通信,第三方库又不支持使用 `await` (目前大多数数据库三方库都是这样),这种情况你可以像平常那样使用 `def` 声明一个路径操作函数,就像这样: ```Python hl_lines="2" @app.get('/') def results():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 21.5K bytes - Viewed (0) -
docs/zh/docs/advanced/generate-clients.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-multiple-params.md
``` так же, как в этом примере: {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *} В этом случае **FastAPI** будет ожидать тело запроса в формате: ```JSON hl_lines="2" { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } } ``` вместо этого: ```JSON {Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 8.3K bytes - Viewed (0) -
docs/es/docs/tutorial/body-multiple-params.md
```Python item: Item = Body(embed=True) ``` como en: {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *} En este caso, **FastAPI** esperará un cuerpo como: ```JSON hl_lines="2" { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } } ``` en lugar de: ```JSON {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 5.2K bytes - Viewed (0)