- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 84 for dependente (0.2 sec)
-
docs/pt/docs/tutorial/dependencies/sub-dependencies.md
Isso é bastante simples (e não muito útil), mas irá nos ajudar a focar em como as subdependências funcionam. ## Segunda dependência, "injetável" e "dependente" Então, você pode criar uma outra função para uma dependência (um "injetável") que ao mesmo tempo declara sua própria dependência (o que faz dela um "dependente" também): //// tab | Python 3.10+ ```Python hl_lines="13" {!> ../../docs_src/dependencies/tutorial005_an_py310.py!} ```
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/index.md
/// tip | "Dica" Utilize a versão com `Annotated` se possível. /// ```Python hl_lines="3" {!> ../../docs_src/dependencies/tutorial001.py!} ``` //// ### Declarando a dependência, no "dependente" Da mesma forma que você utiliza `Body`, `Query`, etc. Como parâmetros de sua *função de operação de rota*, utilize `Depends` com um novo parâmetro: //// tab | Python 3.10+ ```Python hl_lines="13 18"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12.6K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/sub-dependencies.md
This is quite simple (not very useful), but will help us focus on how the sub-dependencies work. ## Second dependency, "dependable" and "dependant" Then you can create another dependency function (a "dependable") that at the same time declares a dependency of its own (so it is a "dependant" too): //// tab | Python 3.10+ ```Python hl_lines="13" {!> ../../docs_src/dependencies/tutorial005_an_py310.py!} ```
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/sub-dependencies.md
## Zweite Abhängigkeit, „Dependable“ und „Dependant“ Dann können Sie eine weitere Abhängigkeitsfunktion (ein „Dependable“) erstellen, die gleichzeitig eine eigene Abhängigkeit deklariert (also auch ein „Dependant“ ist): //// tab | Python 3.10+ ```Python hl_lines="13" {!> ../../docs_src/dependencies/tutorial005_an_py310.py!} ``` ////
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.2K bytes - Viewed (0) -
fastapi/dependencies/utils.py
) -> Dependant: if visited is None: visited = [] visited.append(dependant.cache_key) flat_dependant = Dependant( path_params=dependant.path_params.copy(), query_params=dependant.query_params.copy(), header_params=dependant.header_params.copy(), cookie_params=dependant.cookie_params.copy(), body_params=dependant.body_params.copy(),
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:36:32 UTC 2024 - 34.4K bytes - Viewed (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
* Required scopes `["items"]` with the dependency: * `get_current_active_user`: * The dependency function `get_current_active_user` has: * Required scopes `["me"]` with the dependency: * `get_current_user`: * The dependency function `get_current_user` has: * No scopes required by itself. * A dependency using `oauth2_scheme`.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 20.1K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/index.md
**FastAPI** has a very powerful but intuitive **<abbr title="also known as components, resources, providers, services, injectables">Dependency Injection</abbr>** system. It is designed to be very simple to use, and to make it very easy for any developer to integrate other components with **FastAPI**. ## What is "Dependency Injection"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/index.md
Es ist so konzipiert, sehr einfach zu verwenden zu sein und es jedem Entwickler sehr leicht zu machen, andere Komponenten mit **FastAPI** zu integrieren. ## Was ist „Dependency Injection“
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13K bytes - Viewed (0) -
docs/pt/docs/advanced/security/oauth2-scopes.md
Ele sempre terá os escopos de segurança declarados nas dependências atuais de `Security` e todos os dependentes para **aquela** *operação de rota* **específica** e **aquela** árvore de dependência **específica**.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 21.7K bytes - Viewed (0) -
docs/en/docs/advanced/testing-dependencies.md
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). Instead, you want to provide a different dependency that will be used only during tests (possibly only some specific tests), and will provide a value that can be used where the value of the original dependency was used. ### Use cases: external service
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.9K bytes - Viewed (0)