- Sort Score
- Num 10 results
- Language All
Results 251 - 260 of 268 for tutorial005_py310 (0.11 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_tutorial/test_body/test_tutorial001.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ "tutorial001_py39", pytest.param("tutorial001_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body.{request.param}") client = TestClient(mod.app) return client
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 10.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/background-tasks.md
{* ../../docs_src/background_tasks/tutorial002_an.py hl[14, 16, 23, 26] *} //// //// tab | Python 3.10+ 没Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// {* ../../docs_src/background_tasks/tutorial002_py310.py hl[11, 13, 20, 23] *} //// //// tab | Python 3.8+ 没Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// {* ../../docs_src/background_tasks/tutorial002.py hl[13, 15, 22, 25] *} ////Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 4.7K bytes - Click Count (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial002.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial002_py39"), pytest.param("tutorial002_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_multiple_params.{request.param}") client = TestClient(mod.app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 11K bytes - Click Count (0) -
docs/uk/docs/tutorial/body-multiple-params.md
"description": "The pretender", "price": 42.0, "tax": 3.2 } ``` Але Ви також можете оголосити декілька параметрів тіла, наприклад `item` та `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} У цьому випадку **FastAPI** розпізнає, що є кілька параметрів тіла (два параметри є моделями Pydantic). Тому він використає назви параметрів як ключі (назви полів) у тілі запиту, очікуючи: ```JSON
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Feb 28 14:19:00 GMT 2025 - 7.4K bytes - Click Count (0) -
docs/es/docs/tutorial/body-multiple-params.md
"description": "The pretender", "price": 42.0, "tax": 3.2 } ``` Pero también puedes declarar múltiples parámetros del cuerpo, por ejemplo `item` y `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} En este caso, **FastAPI** notará que hay más de un parámetro del cuerpo en la función (hay dos parámetros que son modelos de Pydantic).
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 5.2K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-multiple-params.md
```JSON { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } ``` 但是你也可以声明多个请求体参数,例如 `item` 和 `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} 在这种情况下,**FastAPI** 将注意到该函数中有多个请求体参数(两个 Pydantic 模型参数)。 因此,它将使用参数名称作为请求体中的键(字段名称),并期望一个类似于以下内容的请求体: ```JSON { "item": { "name": "Foo",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 4.7K bytes - Click Count (0) -
tests/test_tutorial/test_sql_databases/test_tutorial001.py
default_registry.dispose() @pytest.fixture( name="client", params=[ pytest.param("tutorial001_py39"), pytest.param("tutorial001_py310", marks=needs_py310), pytest.param("tutorial001_an_py39"), pytest.param("tutorial001_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): clear_sqlmodel()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 14K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial004.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="mod", params=[ pytest.param("tutorial004_py39"), pytest.param("tutorial004_py310", marks=needs_py310), pytest.param("tutorial004_an_py39"), pytest.param("tutorial004_an_py310", marks=needs_py310), ], ) def get_mod(request: pytest.FixtureRequest):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 13.3K bytes - Click Count (0) -
tests/test_tutorial/test_sql_databases/test_tutorial002.py
default_registry.dispose() @pytest.fixture( name="client", params=[ pytest.param("tutorial002_py39"), pytest.param("tutorial002_py310", marks=needs_py310), pytest.param("tutorial002_an_py39"), pytest.param("tutorial002_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): clear_sqlmodel()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 17.9K bytes - Click Count (0) -
docs/es/docs/advanced/path-operation-advanced-configuration.md
No aparecerá en la documentación, pero otras herramientas (como Sphinx) podrán usar el resto. {* ../../docs_src/path_operation_advanced_configuration/tutorial004_py310.py hl[17:27] *} ## Responses Adicionales { #additional-responses } Probablemente has visto cómo declarar el `response_model` y el `status_code` para una *path operation*.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 8.3K bytes - Click Count (0)