Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for Decorators$ (0.06 sec)

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

    🎏 🌌 👆 💪 [🚮 `dependencies` *➡ 🛠️ 👨‍🎨*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, 👆 💪 🚮 👫 `FastAPI` 🈸.
    
    👈 💼, 👫 🔜 ✔ 🌐 *➡ 🛠️* 🈸:
    
    ```Python hl_lines="15"
    {!../../docs_src/dependencies/tutorial012.py!}
    ```
    
    & 🌐 💭 📄 🔃 [❎ `dependencies` *➡ 🛠️ 👨‍🎨*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} ✔, ✋️ 👉 💼, 🌐 *➡ 🛠️* 📱.
    
    ## 🔗 👪 *➡ 🛠️*
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 825 bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/dependencies/global-dependencies.md

    Для некоторых типов приложений может потребоваться добавить зависимости ко всему приложению.
    
    Подобно тому, как вы можете [добавлять зависимости через параметр `dependencies` в *декораторах операций пути*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, вы можете добавлять зависимости сразу ко всему `FastAPI` приложению.
    
    В этом случае они будут применяться ко всем *операциям пути* в приложении:
    
    //// tab | Python 3.9+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/dependencies/global-dependencies.md

    Para alguns tipos de aplicação específicos você pode querer adicionar dependências para toda a aplicação.
    
    De forma semelhante a [adicionar dependências (`dependencies`) em *decoradores de operação de rota*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, você pode adicioná-las à aplicação `FastAPI`.
    
    Nesse caso, elas serão aplicadas a todas as *operações de rota* da aplicação:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="16"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. 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} 一章的思路均适用于全局依赖项, 在本例中,这些依赖项可以用于应用中的所有*路径操作*。
    
    ## 为一组路径操作定义依赖项
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 955 bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/dependencies/global-dependencies.md

    # 전역 의존성
    
    몇몇 애플리케이션에서는 애플리케이션 전체에 의존성을 추가하고 싶을 수 있습니다.
    
    [*경로 작동 데코레이터*에 `dependencies` 추가하기](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}와 유사한 방법으로 `FastAPI` 애플리케이션에 그것들을 추가할 수 있습니다.
    
    그런 경우에, 애플리케이션의 모든 *경로 작동*에 적용될 것입니다:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="16"
    {!> ../../docs_src/dependencies/tutorial012_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="16"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. fastapi/routing.py

                    *path operation*.
    
                    Read more about it in the
                    [FastAPI docs for Dependencies in path operation decorators](https://fastapi.tiangolo.com/tutorial/dependencies/dependencies-in-path-operation-decorators/).
                    """
                ),
            ] = None,
            summary: Annotated[
                Optional[str],
                Doc(
                    """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/bigger-applications.md

    /// tip
    
    Note that, much like [dependencies in *path operation decorators*](dependencies/dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, no value will be passed to your *path operation function*.
    
    ///
    
    The end result is that the item paths are now:
    
    * `/items/`
    * `/items/{item_id}`
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/path-operation-configuration.md

    <img src="/img/tutorial/path-operation-configuration/image05.png">
    
    ## Recap
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/bigger-applications.md

    &amp; 👥 💪 🚮 📇 `dependencies` 👈 🔜 🚮 🌐 *➡ 🛠️* 📻 &amp; 🔜 🛠️/❎ 🔠 📨 ⚒ 👫.
    
    /// tip
    
    🗒 👈, 🌅 💖 [🔗 *➡ 🛠️ 👨‍🎨*](dependencies/dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, 🙅‍♂ 💲 🔜 🚶‍♀️ 👆 *➡ 🛠️ 🔢*.
    
    ///
    
    🔚 🏁 👈 🏬 ➡ 🔜:
    
    * `/items/`
    * `/items/{item_id}`
    
    ...👥 🎯.
    
    * 👫 🔜 ™ ⏮️ 📇 🔖 👈 🔌 👁 🎻 `"items"`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    would be valid to use as a **FastAPI** dependency.
    
    In fact, FastAPI uses those two decorators internally.
    
    ///
    
    ## A database dependency with `yield`
    
    For example, you could use this to create a database session and close it after finishing.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top