Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 748 for dependencies (0.42 sec)

  1. docs/em/docs/tutorial/dependencies/sub-dependencies.md

    ## 🥇 🔗 "☑"
    
    👆 💪 ✍ 🥇 🔗 ("☑") 💖:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="8-9"
        {!> ../../../docs_src/dependencies/tutorial005.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="6-7"
        {!> ../../../docs_src/dependencies/tutorial005_py310.py!}
        ```
    
    ⚫️ 📣 📦 🔢 🔢 `q` `str`, & ⤴️ ⚫️ 📨 ⚫️.
    
    👉 🙅 (🚫 📶 ⚠), ✋️ 🔜 ℹ 👥 🎯 🔛 ❔ 🎧-🔗 👷.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    # Sub-dependencies
    
    You can create dependencies that have **sub-dependencies**.
    
    They can be as **deep** as you need them to be.
    
    **FastAPI** will take care of solving them.
    
    ## First dependency "dependable"
    
    You could create a first dependency ("dependable") like:
    
    === "Python 3.10+"
    
        ```Python hl_lines="8-9"
        {!> ../../../docs_src/dependencies/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    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)
  3. docs/en/docs/advanced/advanced-dependencies.md

    # Advanced Dependencies
    
    ## Parameterized dependencies
    
    All the dependencies we have seen are a fixed function or class.
    
    But there could be cases where you want to be able to set parameters on the dependency, without having to declare many different functions or classes.
    
    Let's imagine that we want to have a dependency that checks if the query parameter `q` contains some fixed content.
    
    But we want to be able to parameterize that fixed content.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/dependencies/sub-dependencies.md

    ```Python hl_lines="8 9"
    {!../../../docs_src/dependencies/tutorial005.py!}
    ```
    
    これはオプショナルのクエリパラメータ`q`を`str`として宣言し、それを返すだけです。
    
    これは非常にシンプルです(あまり便利ではありません)が、サブ依存関係がどのように機能するかに焦点を当てるのに役立ちます。
    
    ### 第二の依存関係 「依存可能なもの」と「依存」
    
    そして、別の依存関数(「依存可能なもの」)を作成して、同時にそれ自身の依存関係を宣言することができます(つまりそれ自身も「依存」です):
    
    ```Python hl_lines="13"
    {!../../../docs_src/dependencies/tutorial005.py!}
    ```
    
    宣言されたパラメータに注目してみましょう:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 16:43:41 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/testing-dependencies.md

    # Testing Dependencies with Overrides
    
    ## Overriding dependencies during testing
    
    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).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/global-dependencies.md

    # Global Dependencies
    
    For some types of applications you might want to add dependencies to the whole application.
    
    Similar to the way you can [add `dependencies` to the *path operation decorators*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, you can add them to the `FastAPI` application.
    
    In that case, they will be applied to all the *path operations* in the application:
    
    === "Python 3.9+"
    
        ```Python hl_lines="16"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/dependencies/global-dependencies.md

    # 全局依赖项
    
    有时,我们要为整个应用添加依赖项。
    
    通过与定义[*路径装饰器依赖项*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} 类似的方式,可以把依赖项添加至整个 `FastAPI` 应用。
    
    这样一来,就可以为所有*路径操作*应用该依赖项:
    
    ```Python hl_lines="15"
    {!../../../docs_src/dependencies/tutorial012.py!}
    ```
    
    [*路径装饰器依赖项*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} 一章的思路均适用于全局依赖项, 在本例中,这些依赖项可以用于应用中的所有*路径操作*。
    
    ## 为一组路径操作定义依赖项
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 958 bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/dependencies/global-dependencies.md

    Подобно тому, как вы можете [добавлять зависимости через параметр `dependencies` в *декораторах операций пути*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, вы можете добавлять зависимости сразу ко всему `FastAPI` приложению.
    
    В этом случае они будут применяться ко всем *операциям пути* в приложении:
    
    === "Python 3.9+"
    
        ```Python hl_lines="16"
        {!> ../../../docs_src/dependencies/tutorial012_an_py39.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/dependencies/sub-dependencies.md

    === "Python 3.10+"
    
        ```Python hl_lines="8-9"
        {!> ../../../docs_src/dependencies/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="8-9"
        {!> ../../../docs_src/dependencies/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9-10"
        {!> ../../../docs_src/dependencies/tutorial005_an.py!}
        ```
    
    === "Python 3.10 nicht annotiert"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:09:48 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    ```Python hl_lines="2-4"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    Полученное значение и есть то, что будет внедрено в функцию операции пути и другие зависимости:
    
    ```Python hl_lines="4"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    Код, следующий за оператором `yield`, выполняется после доставки ответа:
    
    ```Python hl_lines="5-6"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    !!! tip "Подсказка"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 04:21:06 GMT 2024
    - 19.6K bytes
    - Viewed (0)
Back to top