- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 421 for depende (0.11 sec)
-
docs/pt/docs/advanced/advanced-dependencies.md
## Utilize a instância como dependência Então, nós podemos utilizar este `checker` em um `Depends(checker)`, no lugar de `Depends(FixedContentQueryChecker)`, porque a dependência é a instância, `checker`, e não a própria classe. E quando a dependência for resolvida, o **FastAPI** chamará este `checker` como: ```Python
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
For those cases, instead of declaring a *path operation function* parameter with `Depends`, you can add a `list` of `dependencies` to the *path operation decorator*. ## Add `dependencies` to the *path operation decorator* The *path operation decorator* receives an optional argument `dependencies`. It should be a `list` of `Depends()`: //// tab | Python 3.9+ ```Python hl_lines="19"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4K 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`であるべきです: ```Python hl_lines="17" {!../../docs_src/dependencies/tutorial006.py!} ```
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.9K bytes - Viewed (0) -
docs/em/docs/advanced/websockets.md
<img src="/img/tutorial/websockets/image03.png"> 👆 💪 📨 (& 📨) 📚 📧: <img src="/img/tutorial/websockets/image04.png"> & 🌐 👫 🔜 ⚙️ 🎏 *️⃣ 🔗. ## ⚙️ `Depends` & 🎏 *️⃣ 🔗 👆 💪 🗄 ⚪️➡️ `fastapi` & ⚙️: * `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` 👫 👷 🎏 🌌 🎏 FastAPI 🔗/*➡ 🛠️*: ```Python hl_lines="66-77 76-91"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.8K bytes - Viewed (0) -
fastapi/security/oauth2.py
## Example ```python from typing import Annotated from fastapi import Depends, FastAPI from fastapi.security import OAuth2PasswordRequestForm app = FastAPI() @app.post("/login") def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]): data = {} data["scopes"] = [] for scope in form_data.scopes:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Wed Oct 23 18:30:18 UTC 2024 - 21.1K bytes - Viewed (0) -
migrator/migrator.go
if rel.Field.IgnoreMigration { continue } if c := rel.ParseConstraint(); c != nil && c.Schema == dep.Statement.Schema && c.Schema != c.ReferenceSchema { dep.Depends = append(dep.Depends, c.ReferenceSchema) } if rel.Type == schema.HasOne || rel.Type == schema.HasMany { beDependedOn[rel.FieldSchema] = true } if rel.JoinTable != nil {
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Fri Apr 26 07:15:49 UTC 2024 - 29K bytes - Viewed (0) -
docs/en/docs/advanced/websockets.md
You can send (and receive) many messages: <img src="/img/tutorial/websockets/image04.png"> And all of them will use the same WebSocket connection. ## Using `Depends` and others In WebSocket endpoints you can import from `fastapi` and use: * `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` They work the same way as for other FastAPI endpoints/*path operations*:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.3K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/CheckContributorsInReleaseNotes.kt
*/ package gradlebuild.buildutils.tasks import org.gradle.api.tasks.TaskAction import org.gradle.work.DisableCachingByDefault import java.util.TreeSet @DisableCachingByDefault(because = "Depends on GitHub API") abstract class CheckContributorsInReleaseNotes : AbstractCheckOrUpdateContributorsInReleaseNotes() { @TaskAction fun check() {
Registered: Wed Oct 30 11:36:09 UTC 2024 - Last Modified: Fri Jun 28 08:29:24 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/BUILD
) # To avoid duplication, check that the C++ or python library does not depend on # the stream executor cuda plugins. Targets that want to use cuda APIs should # instead depend on the dummy plugins in @local_tsl//tsl/platform/default/build_config # and use header only targets. # TODO(ddunleavy): This seems completely broken. :tensorflow_cc depends on # cuda_platform from tf_additional_binary_deps and this doesn't break. check_deps(
Registered: Tue Oct 29 12:39:09 UTC 2024 - Last Modified: Wed Oct 16 05:28:35 UTC 2024 - 53.5K bytes - Viewed (0) -
docs/en/docs/reference/security/index.md
# Security Tools When you need to declare dependencies with OAuth2 scopes you use `Security()`. But you still need to define what is the dependable, the callable that you pass as a parameter to `Depends()` or `Security()`. There are multiple tools that you can use to create those dependables, and they get integrated into OpenAPI so they are shown in the automatic docs UI, they can be used by automatically generated clients and SDKs, etc.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 1.6K bytes - Viewed (0)