- Sort Score
- Result 10 results
- Languages All
Results 341 - 350 of 350 for tutorial003_py310 (0.06 sec)
-
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):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 13.3K bytes - Viewed (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()
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 17.9K bytes - Viewed (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*.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 8.3K bytes - Viewed (0) -
docs/pt/docs/advanced/path-operation-advanced-configuration.md
Ele não será mostrado na documentação, mas outras ferramentas (como o Sphinx) serão capazes de utilizar o resto do texto. {* ../../docs_src/path_operation_advanced_configuration/tutorial004_py310.py hl[17:27] *} ## Respostas Adicionais { #additional-responses } Você provavelmente já viu como declarar o `response_model` e `status_code` para uma *operação de rota*.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 8.7K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
And you want to handle this exception globally with FastAPI. You could add a custom exception handler with `@app.exception_handler()`: {* ../../docs_src/handling_errors/tutorial003_py39.py hl[5:7,13:18,24] *} Here, if you request `/unicorns/yolo`, the *path operation* will `raise` a `UnicornException`. But it will be handled by the `unicorn_exception_handler`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 9K bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
# 查询参数和字符串校验 **FastAPI** 允许你为参数声明额外的信息和校验。 让我们以下面的应用程序为例: {* ../../docs_src/query_params_str_validations/tutorial001_py310.py hl[7] *} 查询参数 `q` 的类型为 `str`,默认值为 `None`,因此它是可选的。 ## 额外的校验 我们打算添加约束条件:即使 `q` 是可选的,但只要提供了该参数,则该参数值**不能超过50个字符的长度**。 ### 导入 `Query` 为此,首先从 `fastapi` 导入 `Query`: {* ../../docs_src/query_params_str_validations/tutorial002.py hl[1] *} ## 使用 `Query` 作为默认值Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 15 16:23:59 UTC 2025 - 7.7K bytes - Viewed (0) -
docs/ru/docs/advanced/custom-response.md
Тот же пример сверху, возвращающий `HTMLResponse`, может выглядеть так: {* ../../docs_src/custom_response/tutorial003_py39.py hl[2,7,19] *} /// warning | ПредупреждениеRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 19.7K bytes - Viewed (0) -
docs/zh/docs/advanced/generate-clients.md
你可以自定义该函数。它接受一个 `APIRoute` 对象作为输入,并输出一个字符串。 例如,以下是一个示例,它使用第一个标签(你可能只有一个标签)和*路径操作*名称(函数名)。 然后,你可以将这个自定义函数作为 `generate_unique_id_function` 参数传递给 **FastAPI**: {* ../../docs_src/generate_clients/tutorial003_py39.py hl[6:7,10] *} ### 使用自定义操作ID生成TypeScript客户端 现在,如果你再次生成客户端,你会发现它具有改善的方法名称: <img src="/img/tutorial/generate-clients/image07.png"> 正如你所见,现在方法名称中只包含标签和函数名,不再包含URL路径和HTTP操作的信息。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/pt/docs/advanced/custom-response.md
O mesmo exemplo de antes, retornando uma `HTMLResponse`, poderia parecer com: {* ../../docs_src/custom_response/tutorial003_py39.py hl[2,7,19] *} /// warning | AtençãoRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 13.8K bytes - Viewed (0) -
docs/de/docs/advanced/behind-a-proxy.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 18.6K bytes - Viewed (0)