- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 272 for tutorial009_an_py310 (0.09 sec)
-
tests/test_tutorial/test_websockets/test_tutorial002.py
@pytest.fixture( name="app", 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_app(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.websockets.{request.param}") return mod.app def test_main(app: FastAPI):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.1K bytes - Viewed (0) -
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/schema-extra-example.md
请记住,传递的那些额外参数不会添加任何验证,只会添加注释,用于文档的目的。 /// ## `Body` 额外参数 你可以通过传递额外信息给 `Field` 同样的方式操作`Path`, `Query`, `Body`等。 比如,你可以将请求体的一个 `example` 传递给 `Body`: {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:27] *} ## 文档 UI 中的例子 使用上面的任何方法,它在 `/docs` 中看起来都是这样的: <img src="/img/tutorial/body-fields/image01.png"> ## 技术细节 关于 `example` 和 `examples`...Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.4K 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/ko/docs/tutorial/dependencies/index.md
/// ### `Depends` 불러오기 {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *} ### "의존자"에 의존성 명시하기 *경로 작동 함수*의 매개변수로 `Body`, `Query` 등을 사용하는 방식과 같이 새로운 매개변수로 `Depends`를 사용합니다: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *} 비록 `Body`, `Query` 등을 사용하는 것과 같은 방식으로 여러분의 함수의 매개변수에 있는 `Depends`를 사용하지만, `Depends`는 약간 다르게 작동합니다.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 11.1K 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) -
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) -
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/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)