Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 642 for tutorial007_py39 (0.09 sec)

  1. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial007_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.path_operation_advanced_configuration.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. docs/ru/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py39.py hl[1] *}
    
    Так как редактор кода знает типы переменных, вы получаете не только автозавершение, но и проверки ошибок:
    
    <img src="/img/python-types/image04.png">
    
    Теперь вы знаете, что нужно исправить — преобразовать `age` в строку с помощью `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py39.py hl[2] *}
    
    ## Объявление типов { #declaring-types }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_query_params_str_validations/test_tutorial007.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial007_py39"),
            pytest.param("tutorial007_py310", marks=needs_py310),
            pytest.param("tutorial007_an_py39"),
            pytest.param("tutorial007_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    {* ../../docs_src/dependencies/tutorial007_py39.py hl[2:4] *}
    
    O valor gerado (yielded) é o que é injetado nas *operações de rota* e outras dependências:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[4] *}
    
    O código após o `yield` é executado após a resposta:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[5:6] *}
    
    /// tip | Dica
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    {* ../../docs_src/dependencies/tutorial007_py39.py hl[2:4] *}
    
    The yielded value is what is injected into *path operations* and other dependencies:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[4] *}
    
    The code following the `yield` statement is executed after the response:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[5:6] *}
    
    /// tip
    
    You can use `async` or regular functions.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial007.py

    import importlib
    from base64 import b64encode
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial007_py39"),
            pytest.param("tutorial007_an_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.security.{request.param}")
        return TestClient(mod.app)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/custom-response.md

    {* ../../docs_src/custom_response/tutorial006c_py39.py hl[2,7,9] *}
    
    ### `StreamingResponse` { #streamingresponse }
    
    Takes an async generator or a normal generator/iterator and streams the response body.
    
    {* ../../docs_src/custom_response/tutorial007_py39.py hl[2,14] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/custom-response.md

    {* ../../docs_src/custom_response/tutorial006c_py39.py hl[2,7,9] *}
    
    ### `StreamingResponse` { #streamingresponse }
    
    Nimmt einen asynchronen Generator oder einen normalen Generator/Iterator und streamt den Responsebody.
    
    {* ../../docs_src/custom_response/tutorial007_py39.py hl[2,14] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  9. docs/de/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py39.py hl[1] *}
    
    Da der Editor die Typen der Variablen kennt, erhalten Sie nicht nur Code-Vervollständigung, sondern auch eine Fehlerprüfung:
    
    <img src="/img/python-types/image04.png">
    
    Jetzt, da Sie wissen, dass Sie das reparieren müssen, konvertieren Sie `age` mittels `str(age)` in einen String:
    
    {* ../../docs_src/python_types/tutorial004_py39.py hl[2] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.9K bytes
    - Viewed (1)
  10. docs/ru/docs/advanced/custom-response.md

    {* ../../docs_src/custom_response/tutorial006c_py39.py hl[2,7,9] *}
    
    ### `StreamingResponse` { #streamingresponse }
    
    Принимает асинхронный генератор или обычный генератор/итератор и отправляет тело ответа потоково.
    
    {* ../../docs_src/custom_response/tutorial007_py39.py hl[2,14] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top