Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 585 for Depends (0.05 sec)

  1. docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    # 路径操作装饰器依赖项
    
    有时,我们并不需要在*路径操作函数*中使用依赖项的返回值。
    
    或者说,有些依赖项不返回值。
    
    但仍要执行或解析该依赖项。
    
    对于这种情况,不必在声明*路径操作函数*的参数时使用 `Depends`,而是可以在*路径操作装饰器*中添加一个由 `dependencies` 组成的 `list`。
    
    ## 在*路径操作装饰器*中添加 `dependencies` 参数
    
    *路径操作装饰器*支持可选参数 ~ `dependencies`。
    
    该参数的值是由 `Depends()` 组成的 `list`:
    
    ```Python hl_lines="17"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    路径操作装饰器依赖项(以下简称为**“路径装饰器依赖项”**)的执行或解析方式和普通依赖项一样,但就算这些依赖项会返回值,它们的值也不会传递给*路径操作函数*。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/websockets.md

    Você pode enviar (e receber) muitas mensagens:
    
    <img src="/img/tutorial/websockets/image04.png">
    
    E todas elas usarão a mesma conexão WebSocket.
    
    ## Usando `Depends` e outros
    
    Nos endpoints WebSocket você pode importar do `fastapi` e usar:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    Eles funcionam da mesma forma que para outros endpoints FastAPI/*operações de rota*:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:20:59 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. futures/listenablefuture1/pom.xml

        "version" that omits the class to avoid conflicts with the copy in Guava
        itself. The idea is:
    
        - If users want only ListenableFuture, they depend on listenablefuture-1.0.
    
        - If users want all of Guava, they depend on guava, which, as of Guava
        27.0, depends on
        listenablefuture-9999.0-empty-to-avoid-conflict-with-guava. The 9999.0-...
        version number is enough for some build systems (notably, Gradle) to select
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 12 21:42:09 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  4. fastapi/applications.py

                    **Example**
    
                    ```python
                    from fastapi import Depends, FastAPI
    
                    from .dependencies import func_dep_1, func_dep_2
    
                    app = FastAPI(dependencies=[Depends(func_dep_1), Depends(func_dep_2)])
                    ```
                    """
                ),
            ] = None,
            default_response_class: Annotated[
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  5. 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/security/first-steps.md

    ///
    
    `oauth2_scheme` 🔢 👐 `OAuth2PasswordBearer`, ✋️ ⚫️ "🇧🇲".
    
    ⚫️ 💪 🤙:
    
    ```Python
    oauth2_scheme(some, parameters)
    ```
    
    , ⚫️ 💪 ⚙️ ⏮️ `Depends`.
    
    ### ⚙️ ⚫️
    
    🔜 👆 💪 🚶‍♀️ 👈 `oauth2_scheme` 🔗 ⏮️ `Depends`.
    
    ```Python hl_lines="10"
    {!../../docs_src/security/tutorial001.py!}
    ```
    
    👉 🔗 🔜 🚚 `str` 👈 🛠️ 🔢 `token` *➡ 🛠️ 🔢*.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    몇몇 경우에는, *경로 작동 함수* 안에서 의존성의 반환 값이 필요하지 않습니다.
    
    또는 의존성이 값을 반환하지 않습니다.
    
    그러나 여전히 실행/해결될 필요가 있습니다.
    
    그런 경우에, `Depends`를 사용하여 *경로 작동 함수*의 매개변수로 선언하는 것보다 *경로 작동 데코레이터*에 `dependencies`의 `list`를 추가할 수 있습니다.
    
    ## *경로 작동 데코레이터*에 `dependencies` 추가하기
    
    *경로 작동 데코레이터*는 `dependencies`라는 선택적인 인자를 받습니다.
    
    `Depends()`로 된 `list`이어야합니다:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="19"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/dependencies/sub-dependencies.md

    在高级使用场景中,如果不想使用「缓存」值,而是为需要在同一请求的每一步操作(多次)中都实际调用依赖项,可以把 `Depends` 的参数 `use_cache` 的值设置为 `False` :
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ## 小结
    
    千万别被本章里这些花里胡哨的词藻吓倒了,其实**依赖注入**系统非常简单。
    
    依赖注入无非是与*路径操作函数*一样的函数罢了。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. dbflute_fess/dfprop/databaseInfoMap.dfprop

    # o url      -- The URL for connecting database.
    # o schema   -- The schema name.
    # o user     -- The database user name.
    # o password -- The database password.
    # o propertiesMap -- The properties that depends on the database.
    # o variousMap    -- The various settings about JDBC task.
    #
    # *The line that starts with '#' means comment-out.
    #
    map:{
        ; driver   = org.h2.Driver
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 31 23:35:14 UTC 2015
    - 7.3K bytes
    - Viewed (0)
  10. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateContributorsInReleaseNotes.kt

     */
    
    package gradlebuild.buildutils.tasks
    
    import gradlebuild.basics.toLowerCase
    import org.gradle.api.tasks.TaskAction
    import org.gradle.work.DisableCachingByDefault
    
    @DisableCachingByDefault(because = "Depends on GitHub API")
    abstract class UpdateContributorsInReleaseNotes : AbstractCheckOrUpdateContributorsInReleaseNotes() {
        @TaskAction
        fun update() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 11:42:19 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top