Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 444 for dependencies (0.07 sec)

  1. docs/en/docs/advanced/testing-dependencies.md

    # Testing Dependencies with Overrides { #testing-dependencies-with-overrides }
    
    ## Overriding dependencies during testing { #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).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/advanced-dependencies.md

    🚫 🎓 ⚫️ (❔ ⏪ 🇧🇲), ✋️ 👐 👈 🎓.
    
    👈, 👥 📣 👩‍🔬 `__call__`:
    
    {* ../../docs_src/dependencies/tutorial011.py hl[10] *}
    
    👉 💼, 👉 `__call__` ⚫️❔ **FastAPI** 🔜 ⚙️ ✅ 🌖 🔢 & 🎧-🔗, & 👉 ⚫️❔ 🔜 🤙 🚶‍♀️ 💲 🔢 👆 *➡ 🛠️ 🔢* ⏪.
    
    ## 🔗 👐
    
    & 🔜, 👥 💪 ⚙️ `__init__` 📣 🔢 👐 👈 👥 💪 ⚙️ "🔗" 🔗:
    
    {* ../../docs_src/dependencies/tutorial011.py hl[7] *}
    
    👉 💼, **FastAPI** 🏆 🚫 ⏱ 👆 ⚖️ 💅 🔃 `__init__`, 👥 🔜 ⚙️ ⚫️ 🔗 👆 📟.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/dependencies/sub-dependencies.md

    Их **вложенность** может быть любой глубины.
    
    **FastAPI** сам займётся их управлением.
    
    ## Провайдер зависимости
    
    Можно создать первую зависимость следующим образом:
    
    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *}
    
    Она объявляет необязательный параметр запроса `q` как строку, а затем возвращает его.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/dependencies/classes-as-dependencies.md

    # Clases como dependencias
    
    Antes de profundizar en el sistema de **Inyección de Dependencias**, vamos a mejorar el ejemplo anterior.
    
    ## Un `dict` del ejemplo anterior
    
    En el ejemplo anterior, estábamos devolviendo un `dict` de nuestra dependencia ("dependable"):
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[9] *}
    
    Pero luego obtenemos un `dict` en el parámetro `commons` de la *path operation function*.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    ```python hl_lines="16-17  24-25"
    {!> ../../docs_src/dependencies/tutorial008.py!}
    ```
    
    ////
    
    Da mesma forma, você pode ter algumas dependências com `yield` e outras com `return` e ter uma relação de dependência entre algumas dos dois tipos.
    
    E você poderia ter uma única dependência que precisa de diversas outras dependências com `yield`, etc.
    
    Você pode ter qualquer combinação de dependências que você quiser.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

    🖼, 👆 💪 ⚙️ 👉 ✍ 💽 🎉 & 🔐 ⚫️ ⏮️ 🏁.
    
    🕴 📟 ⏭ & 🔌 `yield` 📄 🛠️ ⏭ 📨 📨:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[2:4] *}
    
    🌾 💲 ⚫️❔ 💉 🔘 *➡ 🛠️* & 🎏 🔗:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[4] *}
    
    📟 📄 `yield` 📄 🛠️ ⏮️ 📨 ✔️ 🚚:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[5:6] *}
    
    /// tip
    
    👆 💪 ⚙️ `async` ⚖️ 😐 🔢.
    
    **FastAPI** 🔜 ▶️️ 👜 ⏮️ 🔠, 🎏 ⏮️ 😐 🔗.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/testing-dependencies.md

    # Testando Dependências com Sobreposição (Overrides)
    
    ## Sobrepondo dependências durante os testes
    
    Existem alguns cenários onde você deseje sobrepor uma dependência durante os testes.
    
    Você não quer que a dependência original execute (e nenhuma das subdependências que você possa ter).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    例えば、これを使ってデータベースセッションを作成し、終了後にそれを閉じることができます。
    
    レスポンスを送信する前に`yield`文を含む前のコードのみが実行されます。
    
    {* ../../docs_src/dependencies/tutorial007.py hl[2,3,4] *}
    
    生成された値は、*path operations*や他の依存関係に注入されるものです:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[4] *}
    
    `yield`文に続くコードは、レスポンスが送信された後に実行されます:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[5,6] *}
    
    /// tip | 豆知識
    
    `async`や通常の関数を使用することができます。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    In the same way, you can use `finally` to make sure the exit steps are executed, no matter if there was an exception or not.
    
    {* ../../docs_src/dependencies/tutorial007.py hl[3,5] *}
    
    ## Sub-dependencies with `yield` { #sub-dependencies-with-yield }
    
    You can have sub-dependencies and "trees" of sub-dependencies of any size and shape, and any or all of them can use `yield`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md

    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    Обратите внимание на метод `__init__`, используемый для создания экземпляра класса:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ...имеет те же параметры, что и ранее используемая функция `common_parameters`:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top