- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 177 for tutorial001_01_py310 (0.1 seconds)
-
docs/es/docs/tutorial/header-param-models.md
Declara los **parámetros de header** que necesitas en un **modelo Pydantic**, y luego declara el parámetro como `Header`: {* ../../docs_src/header_param_models/tutorial001_an_py310.py hl[9:14,18] *} **FastAPI** **extraerá** los datos para **cada campo** de los **headers** en el request y te dará el modelo Pydantic que definiste. ## Revisa la Documentación { #check-the-docs }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 2.8K bytes - Click Count (0) -
docs/zh/docs/tutorial/query-param-models.md
这将允许你在**多个地方**去**复用模型**,并且一次性为所有参数声明验证和元数据。😎 /// note FastAPI 从 `0.115.0` 版本开始支持这个特性。🤓 /// ## 使用 Pydantic 模型的查询参数 在一个 **Pydantic 模型**中声明你需要的**查询参数**,然后将参数声明为 `Query`: {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *} **FastAPI** 将会从请求的**查询参数**中**提取**出**每个字段**的数据,并将其提供给你定义的 Pydantic 模型。 ## 查看文档 你可以在 `/docs` 页面的 UI 中查看查询参数: <div class="screenshot">Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Nov 26 22:06:31 GMT 2024 - 2K bytes - Click Count (0) -
tests/test_tutorial/test_query_param_models/test_tutorial001.py
@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): mod = importlib.import_module(f"docs_src.query_param_models.{request.param}") client = TestClient(mod.app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.8K bytes - Click Count (0) -
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py
@pytest.fixture( name="test_module", 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_test_module(request: pytest.FixtureRequest) -> ModuleType: mod: ModuleType = importlib.import_module( f"docs_src.dependency_testing.{request.param}" )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.4K bytes - Click Count (0) -
docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md
## `dict` из предыдущего примера { #a-dict-from-the-previous-example } В предыдущем примере мы возвращали `dict` из нашей зависимости: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[9] *} Но затем мы получаем `dict` в параметре `commons` *функции-обработчика пути*.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10.7K bytes - Click Count (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02.py
from inline_snapshot import snapshot from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial001_02_py39"), pytest.param("tutorial001_02_py310", marks=needs_py310), pytest.param("tutorial001_02_an_py39"), pytest.param("tutorial001_02_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.4K bytes - Click Count (0) -
docs/ru/docs/tutorial/path-params-numeric-validations.md
## Импорт `Path` { #import-path } Сначала импортируйте `Path` из `fastapi`, а также импортируйте `Annotated`: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *} /// info | Информация Поддержка `Annotated` была добавлена в FastAPI начиная с версии 0.95.0 (и с этой версии рекомендуется использовать этот подход).Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10.6K bytes - Click Count (0) -
tests/test_tutorial/test_header_param_models/test_tutorial001.py
@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): mod = importlib.import_module(f"docs_src.header_param_models.{request.param}") client = TestClient(mod.app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.3K bytes - Click Count (0) -
docs/de/docs/tutorial/cookie-param-models.md
Deklarieren Sie die **Cookie**-Parameter, die Sie benötigen, in einem **Pydantic-Modell**, und deklarieren Sie dann den Parameter als `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 13:54:34 GMT 2025 - 3.8K bytes - Click Count (0) -
docs/uk/docs/tutorial/query-param-models.md
/// ## Query параметри з Pydantic-моделлю Оголосіть **query параметри**, які Вам потрібні, у **Pydantic-моделі**, а потім оголосіть цей параметр як `Query`: {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *} **FastAPI** буде **витягувати** дані для **кожного поля** з **query параметрів** у запиті та передавати їх у визначену вами Pydantic-модель. ## Перевірте документаціюCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Jun 05 12:12:04 GMT 2025 - 3.2K bytes - Click Count (0)