Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 386 for dependsOn (0.07 sec)

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

    Для таких ситуаций, вместо объявления *функции операции пути* с параметром `Depends`, вы можете добавить список зависимостей `dependencies` в *декоратор операции пути*.
    
    ## Добавление `dependencies` в *декоратор операции пути*
    
    *Декоратор операции пути* получает необязательный аргумент `dependencies`.
    
    Это должен быть `list` состоящий из `Depends()`:
    
    //// 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
    - 6.4K bytes
    - Viewed (0)
  2. dbflute.xml

    	<target name="mydbflute.check">
    		<condition property="mydbflute.exists">
    			<available file="${mydbflute.dir}" type="dir" />
    		</condition>
    	</target>
    
    	<target name="download.dbflute" depends="mydbflute.check" unless="mydbflute.exists">
    		<mkdir dir="${mydbflute.dir}" />
    		<get dest="${target.dir}/mydbflute.zip">
    			<url url="${mydbflute.url}" />
    		</get>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Sep 21 05:37:26 UTC 2024
    - 1000 bytes
    - Viewed (0)
  3. 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    In diesen Fällen können Sie, anstatt einen Parameter der *Pfadoperation-Funktion* mit `Depends` zu deklarieren, eine `list`e von `dependencies` zum *Pfadoperation-Dekorator* hinzufügen.
    
    ## `dependencies` zum *Pfadoperation-Dekorator* hinzufügen
    
    Der *Pfadoperation-Dekorator* erhält ein optionales Argument `dependencies`.
    
    Es sollte eine `list`e von `Depends()` sein:
    
    //// 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.6K bytes
    - Viewed (0)
  5. 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/packaging/deb/scripts/control

    Package: fess
    Version: [[version]]
    Architecture: all
    Maintainer: Fess Team
    Depends: libc6, adduser
    Section: web
    Priority: optional
    Homepage: https://github.com/codelibs/fess
    Description: Enterprise Search Server: Fess
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Dec 10 01:24:02 UTC 2015
    - 420 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top