- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 387 for dependencias (0.05 sec)
-
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
# Classes as Dependencies { #classes-as-dependencies } Before diving deeper into the **Dependency Injection** system, let's upgrade the previous example. ## A `dict` from the previous example { #a-dict-from-the-previous-example } In the previous example, we were returning a `dict` from our dependency ("dependable"): {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[9] *}
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 6.7K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/dependencies-with-yield.md
{* ../../docs_src/dependencies/tutorial007.py hl[2:4] *} Der ge`yield`ete Wert ist das, was in *Pfadoperationen* und andere Abhängigkeiten eingefügt wird: {* ../../docs_src/dependencies/tutorial007.py hl[4] *} Der auf die `yield`-Anweisung folgende Code wird ausgeführt, nachdem die Response gesendet wurde: {* ../../docs_src/dependencies/tutorial007.py hl[5:6] *} /// tip | Tipp
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 12.2K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/classes-as-dependencies.md
⤴️, 👥 💪 🔀 🔗 "☑" `common_parameters` ⚪️➡️ 🔛 🎓 `CommonQueryParams`: {* ../../docs_src/dependencies/tutorial002.py hl[11:15] *} 💸 🙋 `__init__` 👩🔬 ⚙️ ✍ 👐 🎓: {* ../../docs_src/dependencies/tutorial002.py hl[12] *} ...⚫️ ✔️ 🎏 🔢 👆 ⏮️ `common_parameters`: {* ../../docs_src/dependencies/tutorial001.py hl[9] *} 📚 🔢 ⚫️❔ **FastAPI** 🔜 ⚙️ "❎" 🔗. 👯♂️ 💼, ⚫️ 🔜 ✔️:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
例えば、これを使ってデータベースセッションを作成し、終了後にそれを閉じることができます。 レスポンスを送信する前に`yield`文を含む前のコードのみが実行されます。 {* ../../docs_src/dependencies/tutorial007.py hl[2,3,4] *} 生成された値は、*path operations*や他の依存関係に注入されるものです: {* ../../docs_src/dependencies/tutorial007.py hl[4] *} `yield`文に続くコードは、レスポンスが送信された後に実行されます: {* ../../docs_src/dependencies/tutorial007.py hl[5,6] *} /// tip | 豆知識 `async`や通常の関数を使用することができます。
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 12.3K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md
응답을 생성하기 전에는 `yield`문을 포함하여 그 이전의 코드만이 실행됩니다: {* ../../docs_src/dependencies/tutorial007.py hl[2:4] *} yield된 값은 *경로 작업* 및 다른 의존성들에 주입되는 값 입니다: {* ../../docs_src/dependencies/tutorial007.py hl[4] *} `yield`문 다음의 코드는 응답을 생성한 후 보내기 전에 실행됩니다: {* ../../docs_src/dependencies/tutorial007.py hl[5:6] *} /// tip | 팁 `async` 함수와 일반 함수 모두 사용할 수 있습니다.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Feb 09 14:54:09 UTC 2025 - 14.2K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md
{* ../../docs_src/dependencies/tutorial007.py hl[2:4] *} Полученное значение и есть то, что будет внедрено в функцию операции пути и другие зависимости: {* ../../docs_src/dependencies/tutorial007.py hl[4] *} Код, следующий за оператором `yield`, выполняется после доставки ответа: {* ../../docs_src/dependencies/tutorial007.py hl[5:6] *} /// tip | Подсказка
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 18.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md
그래서, 우리는 위 예제에서의 `common_paramenters` 의존성을 클래스 `CommonQueryParams`로 바꿀 수 있습니다. {* ../../docs_src/dependencies/tutorial002.py hl[11:15] *} 클래스의 인스턴스를 생성하는 데 사용되는 `__init__` 메서드에 주목하기 바랍니다: {* ../../docs_src/dependencies/tutorial002.py hl[12] *} ...이전 `common_parameters`와 동일한 매개변수를 가집니다: {* ../../docs_src/dependencies/tutorial001.py hl[9] *} 이 매개변수들은 **FastAPI**가 의존성을 "해결"하기 위해 사용할 것입니다 함수와 클래스 두 가지 방식 모두, 아래 요소를 갖습니다:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.7K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md
そこで、上で紹介した依存関係の`common_parameters`を`CommonQueryParams`クラスに変更します: {* ../../docs_src/dependencies/tutorial002.py hl[11,12,13,14,15] *} クラスのインスタンスを作成するために使用される`__init__`メソッドに注目してください: {* ../../docs_src/dependencies/tutorial002.py hl[12] *} ...以前の`common_parameters`と同じパラメータを持っています: {* ../../docs_src/dependencies/tutorial001.py hl[8] *} これらのパラメータは **FastAPI** が依存関係を「解決」するために使用するものです。 どちらの場合も以下を持っています:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 7K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
もしくは、依存関係が値を返さない場合もあります。 しかし、それでも実行・解決する必要があります。 このような場合、*path operation関数*のパラメータを`Depends`で宣言する代わりに、*path operation decorator*に`dependencies`の`list`を追加することができます。 ## *path operationデコレータ*への`dependencies`の追加 *path operationデコレータ*はオプショナルの引数`dependencies`を受け取ります。 それは`Depends()`の`list`であるべきです: {* ../../docs_src/dependencies/tutorial006.py hl[17] *} これらの依存関係は、通常の依存関係と同様に実行・解決されます。しかし、それらの値(何かを返す場合)は*path operation関数*には渡されません。 /// tip | 豆知識
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.9K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
## `dependencies` zum *Pfadoperation-Dekorator* hinzufügen Der *Pfadoperation-Dekorator* erhält ein optionales Argument `dependencies`. Es sollte eine `list`e von `Depends()` sein: {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[19] *}
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.2K bytes - Viewed (0)