- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 626 for dependencies (0.13 sec)
-
docs/zh/docs/tutorial/dependencies/sub-dependencies.md
### 第一层依赖项 下列代码创建了第一层依赖项: ```Python hl_lines="8-9" {!../../docs_src/dependencies/tutorial005.py!} ``` 这段代码声明了类型为 `str` 的可选查询参数 `q`,然后返回这个查询参数。 这个函数很简单(不过也没什么用),但却有助于让我们专注于了解子依赖项的工作方式。 ### 第二层依赖项 接下来,创建另一个依赖项函数,并同时用该依赖项自身再声明一个依赖项(所以这也是一个「依赖项」): ```Python hl_lines="13" {!../../docs_src/dependencies/tutorial005.py!} ``` 这里重点说明一下声明的参数: * 尽管该函数自身是依赖项,但还声明了另一个依赖项(它「依赖」于其他对象)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/de/docs/advanced/advanced-dependencies.md
Dazu deklarieren wir eine Methode `__call__`: //// tab | Python 3.9+ ```Python hl_lines="12" {!> ../../docs_src/dependencies/tutorial011_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="11" {!> ../../docs_src/dependencies/tutorial011_an.py!} ``` //// //// tab | Python 3.8+ nicht annotiert /// tip | "Tipp"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.2K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/sub-dependencies.md
**FastAPI** 🔜 ✊ 💅 🔬 👫. ## 🥇 🔗 "☑" 👆 💪 ✍ 🥇 🔗 ("☑") 💖: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="8-9" {!> ../../docs_src/dependencies/tutorial005.py!} ``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="6-7" {!> ../../docs_src/dependencies/tutorial005_py310.py!} ``` //// ⚫️ 📣 📦 🔢 🔢 `q` `str`, & ⤴️ ⚫️ 📨 ⚫️. 👉 🙅 (🚫 📶 ⚠), ✋️ 🔜 ℹ 👥 🎯 🔛 ❔ 🎧-🔗 👷.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/sub-dependencies.md
以下のような最初の依存関係(「依存可能なもの」)を作成することができます: ```Python hl_lines="8 9" {!../../docs_src/dependencies/tutorial005.py!} ``` これはオプショナルのクエリパラメータ`q`を`str`として宣言し、それを返すだけです。 これは非常にシンプルです(あまり便利ではありません)が、サブ依存関係がどのように機能するかに焦点を当てるのに役立ちます。 ### 第二の依存関係 「依存可能なもの」と「依存」 そして、別の依存関数(「依存可能なもの」)を作成して、同時にそれ自身の依存関係を宣言することができます(つまりそれ自身も「依存」です): ```Python hl_lines="13" {!../../docs_src/dependencies/tutorial005.py!} ``` 宣言されたパラメータに注目してみましょう:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.4K bytes - Viewed (0) -
docs_src/bigger_applications/app/dependencies.py
Sebastián Ramírez <******@****.***> 1652485102 -0500
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 369 bytes - Viewed (0) -
docs_src/bigger_applications/app_an/dependencies.py
Sebastián Ramírez <******@****.***> 1679142599 +0100
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 419 bytes - Viewed (0) -
docs_src/bigger_applications/app_an_py39/dependencies.py
Sebastián Ramírez <******@****.***> 1679142599 +0100
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 409 bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/sub-dependencies.md
# Subdependências Você pode criar dependências que possuem **subdependências**. Elas podem ter o nível de **profundidade** que você achar necessário. O **FastAPI** se encarrega de resolver essas dependências. ## Primeira dependência "injetável" Você pode criar uma primeira dependência (injetável) dessa forma: //// tab | Python 3.10+ ```Python hl_lines="8-9" {!> ../../docs_src/dependencies/tutorial005_an_py310.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/sub-dependencies.md
//// tab | Python 3.10+ ```Python hl_lines="8-9" {!> ../../docs_src/dependencies/tutorial005_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="8-9" {!> ../../docs_src/dependencies/tutorial005_an_py39.py!} ``` //// //// tab | Python 3.6+ ```Python hl_lines="9-10" {!> ../../docs_src/dependencies/tutorial005_an.py!} ``` //// //// tab | Python 3.10 без Annotated
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/global-dependencies.md
``` //// //// tab | Python 3.8 Annotated가 없는 경우 /// tip | "팁" 가능하다면 `Annotated`가 달린 버전을 권장합니다. /// ```Python hl_lines="15" {!> ../../docs_src/dependencies/tutorial012.py!} ``` //// 그리고 [*경로 작동 데코레이터*에 `dependencies` 추가하기](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}에 대한 아이디어는 여전히 적용되지만 여기에서는 앱에 있는 모든 *경로 작동*에 적용됩니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.6K bytes - Viewed (0)