- Sort Score
- Result 10 results
- Languages All
Results 261 - 270 of 277 for tutorial014_an_py310 (0.08 sec)
-
docs/pt/docs/advanced/websockets.md
* `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` Eles funcionam da mesma forma que para outros endpoints FastAPI/*operações de rota*: {* ../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82] *} /// info | Informação Como isso é um WebSocket, não faz muito sentido levantar uma `HTTPException`, em vez disso levantamos uma `WebSocketException`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6K bytes - Viewed (0) -
docs/zh/docs/tutorial/cookie-param-models.md
/// /// tip 此技术同样适用于 `Query` 、 `Cookie` 和 `Header` 。😎 /// ## 带有 Pydantic 模型的 Cookie 在 **Pydantic** 模型中声明所需的 **cookie** 参数,然后将参数声明为 `Cookie` : {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} **FastAPI** 将从请求中接收到的 **cookie** 中**提取**出**每个字段**的数据,并提供您定义的 Pydantic 模型。 ## 查看文档 您可以在文档 UI 的 `/docs` 中查看定义的 cookie: <div class="screenshot">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 10 20:38:03 UTC 2024 - 3K bytes - Viewed (0) -
docs/zh/docs/advanced/websockets.md
在 WebSocket 端点中,您可以从 `fastapi` 导入并使用以下内容: * `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` 它们的工作方式与其他 FastAPI 端点/ *路径操作* 相同: {* ../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82] *} /// info 由于这是一个 WebSocket,抛出 `HTTPException` 并不是很合理,而是抛出 `WebSocketException`。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 5.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/background-tasks.md
**FastAPI** 知道在每种情况下该做什么以及如何复用同一对象,因此所有后台任务被合并在一起并且随后在后台运行: //// tab | Python 3.10+ {* ../../docs_src/background_tasks/tutorial002_an_py310.py hl[13, 15, 22, 25] *} //// //// tab | Python 3.9+ {* ../../docs_src/background_tasks/tutorial002_an_py39.py hl[13, 15, 22, 25] *} //// //// tab | Python 3.8+Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 4.7K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/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): clear_sqlmodel() # TODO: remove when updating SQL tutorial to use new lifespan API
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 14K bytes - Viewed (0) -
docs/ja/docs/tutorial/cookie-param-models.md
これと同じテクニックは `Query` 、 `Cookie` 、 `Header` にも適用できます。 😎 /// ## クッキーにPydanticモデルを使用する 必要な複数の**クッキー**パラメータを**Pydanticモデル**で宣言し、さらに、それを `Cookie` として宣言しましょう: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} **FastAPI**は、リクエストの**クッキー**から**それぞれのフィールド**のデータを**抽出**し、定義された**Pydanticモデル**を提供します。 ## ドキュメントの確認 対話的APIドキュメントUI `/docs` で、定義されているクッキーを確認できます: <div class="screenshot">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Feb 28 14:21:27 UTC 2025 - 4.5K bytes - Viewed (0) -
docs/es/docs/advanced/websockets.md
* `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` Funcionan de la misma manera que para otros endpoints de FastAPI/*path operations*: {* ../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82] *} /// info | Información Como esto es un WebSocket no tiene mucho sentido lanzar un `HTTPException`, en su lugar lanzamos un `WebSocketException`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 5.9K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial004.py
@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): mod = importlib.import_module(f"docs_src.security.{request.param}") return mod
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 13.3K bytes - Viewed (0) -
docs/es/docs/tutorial/background-tasks.md
**FastAPI** sabe qué hacer en cada caso y cómo reutilizar el mismo objeto, de modo que todas las tareas en segundo plano se combinan y ejecutan en segundo plano después: {* ../../docs_src/background_tasks/tutorial002_an_py310.py hl[13,15,22,25] *} En este ejemplo, los mensajes se escribirán en el archivo `log.txt` *después* de que se envíe el response. Si hay un query en el request, se escribirá en el log en una tarea en segundo plano.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 5.1K bytes - Viewed (0) -
docs/de/docs/advanced/websockets.md
* `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` Diese funktionieren auf die gleiche Weise wie für andere FastAPI-Endpunkte/*Pfadoperationen*: {* ../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82] *} /// info | Info Da es sich um einen WebSocket handelt, macht es keinen Sinn, eine `HTTPException` auszulösen, stattdessen lösen wir eine `WebSocketException` aus.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.5K bytes - Viewed (0)