Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for dependabot (0.15 sec)

  1. docs/en/docs/tutorial/dependencies/index.md

    ## First Steps
    
    Let's see a very simple example. It will be so simple that it is not very useful, for now.
    
    But this way we can focus on how the **Dependency Injection** system works.
    
    ### Create a dependency, or "dependable"
    
    Let's first focus on the dependency.
    
    It is just a function that can take all the same parameters that a *path operation function* can take:
    
    === "Python 3.10+"
    
        ```Python hl_lines="8-9"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    Bevor wir tiefer in das **Dependency Injection** System eintauchen, lassen Sie uns das vorherige Beispiel verbessern.
    
    ## Ein `dict` aus dem vorherigen Beispiel
    
    Im vorherigen Beispiel haben wir ein `dict` von unserer Abhängigkeit („Dependable“) zurückgegeben:
    
    === "Python 3.10+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/dependencies/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="11"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:01:58 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md

    # 依存関係としてのクラス
    
    **依存性注入** システムを深く掘り下げる前に、先ほどの例をアップグレードしてみましょう。
    
    ## 前の例の`dict`
    
    前の例では、依存関係("dependable")から`dict`を返していました:
    
    ```Python hl_lines="9"
    {!../../../docs_src/dependencies/tutorial001.py!}
    ```
    
    しかし、*path operation関数*のパラメータ`commons`に`dict`が含まれています。
    
    また、エディタは`dict`のキーと値の型を知ることができないため、多くのサポート(補完のような)を提供することができません。
    
    もっとうまくやれるはずです...。
    
    ## 依存関係を作るもの
    
    これまでは、依存関係が関数として宣言されているのを見てきました。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 16:08:16 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  4. fastapi/dependencies/utils.py

        dependency_cache = dependency_cache or {}
        sub_dependant: Dependant
        for sub_dependant in dependant.dependencies:
            sub_dependant.call = cast(Callable[..., Any], sub_dependant.call)
            sub_dependant.cache_key = cast(
                Tuple[Callable[..., Any], Tuple[str]], sub_dependant.cache_key
            )
            call = sub_dependant.call
            use_sub_dependant = sub_dependant
            if (
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  5. fastapi/openapi/utils.py

                )
                parameters: List[Dict[str, Any]] = []
                flat_dependant = get_flat_dependant(route.dependant, skip_repeats=True)
                security_definitions, operation_security = get_openapi_security_definitions(
                    flat_dependant=flat_dependant
                )
                if operation_security:
                    operation.setdefault("security", []).extend(operation_security)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  6. docs/de/docs/reference/security/index.md

    # Sicherheitstools
    
    Wenn Sie Abhängigkeiten mit OAuth2-Scopes deklarieren müssen, verwenden Sie `Security()`.
    
    Aber Sie müssen immer noch definieren, was das <abbr title="Das von dem abhängt, die zu verwendende Abhängigkeit">Dependable</abbr>, das Callable ist, welches Sie als Parameter an `Depends()` oder `Security()` übergeben.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:15:05 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. fastapi/routing.py

            self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
            for depends in self.dependencies[::-1]:
                self.dependant.dependencies.insert(
                    0,
                    get_parameterless_sub_dependant(depends=depends, path=self.path_format),
                )
            self.body_field = get_body_field(dependant=self.dependant, name=self.unique_id)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  8. 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.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    Before diving deeper into the **Dependency Injection** system, let's upgrade the previous example.
    
    ## A `dict` from the previous example
    
    In the previous example, we were returning a `dict` from our dependency ("dependable"):
    
    === "Python 3.10+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/dependencies/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="11"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/background-tasks.md

    ## Dependency Injection
    
    Using `BackgroundTasks` also works with the dependency injection system, you can declare a parameter of type `BackgroundTasks` at multiple levels: in a *path operation function*, in a dependency (dependable), in a sub-dependency, etc.
    
    **FastAPI** knows what to do in each case and how to re-use the same object, so that all the background tasks are merged together and are run in the background afterwards:
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
Back to top