- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 493 for dependencies (0.06 sec)
-
docs/en/docs/reference/dependencies.md
# Dependencies - `Depends()` and `Security()` ## `Depends()` Dependencies are handled mainly with the special function `Depends()` that takes a callable. Here is the reference for it and its parameters. You can import it directly from `fastapi`: ```python from fastapi import Depends ``` ::: fastapi.Depends ## `Security()`
Registered: 2025-05-25 07:19 - Last Modified: 2024-04-18 19:53 - 671 bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/global-dependencies.md
# Dependências Globais Para alguns tipos de aplicação específicos você pode querer adicionar dependências para toda a aplicação. De forma semelhante a [adicionar dependências (`dependencies`) em *decoradores de operação de rota*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, você pode adicioná-las à aplicação `FastAPI`. Nesse caso, elas serão aplicadas a todas as *operações de rota* da aplicação:
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-18 02:25 - 1.2K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/global-dependencies.md
# 🌐 🔗 🆎 🈸 👆 💪 💚 🚮 🔗 🎂 🈸. 🎏 🌌 👆 💪 [🚮 `dependencies` *➡ 🛠️ 👨🎨*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, 👆 💪 🚮 👫 `FastAPI` 🈸. 👈 💼, 👫 🔜 ✔ 🌐 *➡ 🛠️* 🈸: {* ../../docs_src/dependencies/tutorial012.py hl[15] *} & 🌐 💭 📄 🔃 [❎ `dependencies` *➡ 🛠️ 👨🎨*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} ✔, ✋️ 👉 💼, 🌐 *➡ 🛠️* 📱. ## 🔗 👪 *➡ 🛠️*
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-18 02:25 - 806 bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/sub-dependencies.md
# Sub-dependencies You can create dependencies that have **sub-dependencies**. They can be as **deep** as you need them to be. **FastAPI** will take care of solving them. ## First dependency "dependable" You could create a first dependency ("dependable") like: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} It declares an optional query parameter `q` as a `str`, and then it just returns it.
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-09 15:21 - 3.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/global-dependencies.md
Подобно тому, как вы можете [добавлять зависимости через параметр `dependencies` в *декораторах операций пути*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, вы можете добавлять зависимости сразу ко всему `FastAPI` приложению. В этом случае они будут применяться ко всем *операциям пути* в приложении: {* ../../docs_src/dependencies/tutorial012_an_py39.py hl[16] *}
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-18 02:25 - 1.6K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/global-dependencies.md
# Global Dependencies For some types of applications you might want to add dependencies to the whole application. Similar to the way you can [add `dependencies` to the *path operation decorators*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, you can add them to the `FastAPI` application. In that case, they will be applied to all the *path operations* in the application: {* ../../docs_src/dependencies/tutorial012_an_py39.py hl[16] *}
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-10 17:27 - 1.1K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/global-dependencies.md
Ähnlich wie Sie [`dependencies` zu den *Pfadoperation-Dekoratoren* hinzufügen](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} können, können Sie sie auch zur `FastAPI`-Anwendung hinzufügen. In diesem Fall werden sie auf alle *Pfadoperationen* in der Anwendung angewendet: {* ../../docs_src/dependencies/tutorial012_an_py39.py hl[16] *}
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-18 02:25 - 1.1K bytes - Viewed (0) -
docs/zh/docs/advanced/advanced-dependencies.md
为此,需要声明 `__call__` 方法: {* ../../docs_src/dependencies/tutorial011.py hl[10] *} 本例中,**FastAPI** 使用 `__call__` 检查附加参数及子依赖项,稍后,还要调用它向*路径操作函数*传递值。 ## 参数化实例 接下来,使用 `__init__` 声明用于**参数化**依赖项的实例参数: {* ../../docs_src/dependencies/tutorial011.py hl[7] *} 本例中,**FastAPI** 不使用 `__init__`,我们要直接在代码中使用。 ## 创建实例 使用以下代码创建类实例: {* ../../docs_src/dependencies/tutorial011.py hl[16] *}
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-18 02:25 - 1.9K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/sub-dependencies.md
**FastAPI** kümmert sich darum, sie aufzulösen. ## Erste Abhängigkeit, „Dependable“ Sie könnten eine erste Abhängigkeit („Dependable“) wie folgt erstellen: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} Diese deklariert einen optionalen Abfrageparameter `q` vom Typ `str` und gibt ihn dann einfach zurück.
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-18 02:25 - 4.2K bytes - Viewed (0) -
docs/de/docs/advanced/advanced-dependencies.md
{* ../../docs_src/dependencies/tutorial011_an_py39.py hl[9] *} In diesem Fall wird **FastAPI** `__init__` nie berühren oder sich darum kümmern, wir werden es direkt in unserem Code verwenden. ## Eine Instanz erstellen Wir könnten eine Instanz dieser Klasse erstellen mit: {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[18] *}
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-18 02:25 - 2.8K bytes - Viewed (0)