Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for __iter__ (0.12 sec)

  1. docs/es/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    En Python, puedes crear Context Managers <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">creando una clase con dos métodos: `__enter__()` y `__exit__()`</a>.
    
    También puedes usarlos dentro de las dependencias de **FastAPI** con `yield` usando
    `with` o `async with` en la función de dependencia:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    これは多かれ少なかれ、「高度な」発想です。
    
    **FastAPI** を使い始めたばかりの方は、とりあえずスキップした方がよいかもしれません。
    
    ///
    
    Pythonでは、<a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">以下の2つのメソッドを持つクラスを作成する: `__enter__()`と`__exit__()`</a>ことでコンテキストマネージャを作成することができます。
    
    また、依存関数の中で`with`や`async with`文を使用することによって`yield`を持つ **FastAPI** の依存関係の中でそれらを使用することができます:
    
    {* ../../docs_src/dependencies/tutorial010.py hl[1,2,3,4,5,6,7,8,9,13] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    In Python können Sie Kontextmanager erstellen, indem Sie <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">eine Klasse mit zwei Methoden erzeugen: `__enter__()` und `__exit__()`</a>.
    
    Sie können solche auch innerhalb von **FastAPI**-Abhängigkeiten mit `yield` verwenden, indem Sie `with`- oder `async with`-Anweisungen innerhalb der Abhängigkeits-Funktion verwenden:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    В Python для создания менеджеров контекста можно <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">создать класс с двумя методами: `__enter__()` и `__exit__()`</a>.
    
    Вы также можете использовать их внутри зависимостей **FastAPI** с `yield`, используя операторы
    `with` или `async with` внутри функции зависимости:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    In Python, you can create Context Managers by <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">creating a class with two methods: `__enter__()` and `__exit__()`</a>.
    
    You can also use them inside of **FastAPI** dependencies with `yield` by using
    `with` or `async with` statements inside of the dependency function:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    Em python, você pode criar Gerenciadores de Contexto ao <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank"> criar uma classe com dois métodos: `__enter__()` e `__exit__()`</a>.
    
    Você também pode usá-los dentro de dependências com `yield` do **FastAPI** ao utilizar `with` ou `async with` dentro da função da dependência:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md

    **FastAPI**를 처음 시작하는 경우 지금은 이 부분을 건너뛰어도 좋습니다.
    
    ///
    
    Python에서는 다음을 통해 컨텍스트 관리자를 생성할 수 있습니다. <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank"> 두 가지 메서드가 있는 클래스를 생성합니다: `__enter__()` and `__exit__()`</a>.
    
    **FastAPI**의 `yield`가 있는 의존성 내에서
    `with` 또는 `async with`문을 사용하여 이들을 활용할 수 있습니다:
    
    {* ../../docs_src/dependencies/tutorial010.py hl[1:9,13] *}
    
    /// tip | 팁
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Feb 09 14:54:09 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top