- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 657 for Dependencias (0.05 sec)
-
docs/de/docs/tutorial/dependencies/classes-as-dependencies.md
{* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *} Achten Sie auf die Methode `__init__`, die zum Erstellen der Instanz der Klasse verwendet wird: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *} ... sie hat die gleichen Parameter wie unsere vorherige `common_parameters`: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/global-dependencies.md
# 全局依赖项 有时,我们要为整个应用添加依赖项。 通过与定义[*路径装饰器依赖项*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} 类似的方式,可以把依赖项添加至整个 `FastAPI` 应用。 这样一来,就可以为所有*路径操作*应用该依赖项: {* ../../docs_src/dependencies/tutorial012.py hl[15] *} [*路径装饰器依赖项*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} 一章的思路均适用于全局依赖项, 在本例中,这些依赖项可以用于应用中的所有*路径操作*。 ## 为一组路径操作定义依赖项Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 936 bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/dependencies-with-yield.md
{* ../../docs_src/dependencies/tutorial007_py39.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_py39.py hl[4] *} Der auf die `yield`-Anweisung folgende Code wird nach der Response ausgeführt: {* ../../docs_src/dependencies/tutorial007_py39.py hl[5:6] *} /// tip | TippRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 14.7K bytes - Viewed (0) -
docs/en/docs/advanced/testing-dependencies.md
# Testing Dependencies with Overrides { #testing-dependencies-with-overrides } ## Overriding dependencies during testing { #overriding-dependencies-during-testing } There are some scenarios where you might want to override a dependency during testing. You don't want the original dependency to run (nor any of the sub-dependencies it might have).Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.4K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md
{* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *} Обратите внимание на метод `__init__`, используемый для создания экземпляра класса: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *} ...он имеет те же параметры, что и ранее используемая функция `common_parameters`: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10.7K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
/// ## 使用 `yield` 的数据库依赖项 例如,你可以使用这种方式创建一个数据库会话,并在完成后关闭它。 在发送响应之前,只会执行 `yield` 语句及之前的代码: {* ../../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 | 提示 你可以使用 `async` 或普通函数。 **FastAPI** 会像处理普通依赖一样,对每个依赖做正确的处理。 ///Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 11.3K bytes - Viewed (0) -
docs/ru/docs/advanced/testing-dependencies.md
# Тестирование зависимостей с переопределениями { #testing-dependencies-with-overrides } ## Переопределение зависимостей во время тестирования { #overriding-dependencies-during-testing } Есть сценарии, когда может понадобиться переопределить зависимость во время тестирования. Вы не хотите, чтобы исходная зависимость выполнялась (и любые её подзависимости тоже).Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:37:11 UTC 2025 - 4.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/sub-dependencies.md
并且,可以按需声明任意**深度**的子依赖项嵌套层级。 **FastAPI** 负责处理解析不同深度的子依赖项。 ### 第一层依赖项 下列代码创建了第一层依赖项: {* ../../docs_src/dependencies/tutorial005.py hl[8:9] *} 这段代码声明了类型为 `str` 的可选查询参数 `q`,然后返回这个查询参数。 这个函数很简单(不过也没什么用),但却有助于让我们专注于了解子依赖项的工作方式。 ### 第二层依赖项 接下来,创建另一个依赖项函数,并同时用该依赖项自身再声明一个依赖项(所以这也是一个「依赖项」): {* ../../docs_src/dependencies/tutorial005.py hl[13] *} 这里重点说明一下声明的参数: * 尽管该函数自身是依赖项,但还声明了另一个依赖项(它「依赖」于其他对象)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/sub-dependencies.md
# Подзависимости { #sub-dependencies } Вы можете создавать зависимости, которые имеют **подзависимости**. Их **вложенность** может быть любой глубины. **FastAPI** сам займётся их управлением. ## Первая зависимость { #first-dependency-dependable } Можно создать первую зависимость следующим образом: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.3K bytes - Viewed (0) -
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 Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.7K bytes - Viewed (0)