Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 652 for tutorial003_py39 (0.05 sec)

  1. tests/test_tutorial/test_path_params_numeric_validations/test_tutorial002_tutorial003.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_an_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest) -> TestClient:
        mod = importlib.import_module(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. docs/ru/docs/advanced/path-operation-advanced-configuration.md

    Чтобы исключить *операцию пути* из генерируемой схемы OpenAPI (а значит, и из автоматической документации), используйте параметр `include_in_schema` и установите его в `False`:
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial003_py39.py hl[6] *}
    
    ## Расширенное описание из docstring { #advanced-description-from-docstring }
    
    Вы можете ограничить количество строк из docstring *функции-обработчика пути*, используемых для OpenAPI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. docs/ru/docs/advanced/middleware.md

    {* ../../docs_src/advanced_middleware/tutorial001_py39.py hl[2,6] *}
    
    ## `TrustedHostMiddleware` { #trustedhostmiddleware }
    
    Гарантирует, что во всех входящих запросах корректно установлен `Host`‑заголовок, чтобы защититься от атак на HTTP‑заголовок Host.
    
    {* ../../docs_src/advanced_middleware/tutorial002_py39.py hl[2,6:8] *}
    
    Поддерживаются следующие аргументы:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py

        """).strip(),
    }
    
    
    @pytest.fixture(
        name="mod_name",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
            pytest.param("tutorial004_py39"),
            pytest.param("tutorial004_py310", marks=needs_py310),
        ],
    )
    def get_mod_name(request: pytest.FixtureRequest) -> str:
        return request.param
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_events/test_tutorial003.py

    from fastapi.testclient import TestClient
    
    from docs_src.events.tutorial003_py39 import (
        app,
        fake_answer_to_everything_ml_model,
        ml_models,
    )
    
    
    def test_events():
        assert not ml_models, "ml_models should be empty"
        with TestClient(app) as client:
            assert ml_models["answer_to_everything"] == fake_answer_to_everything_ml_model
            response = client.get("/predict", params={"x": 2})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/path-operation-advanced-configuration.md

    To exclude a *path operation* from the generated OpenAPI schema (and thus, from the automatic documentation systems), use the parameter `include_in_schema` and set it to `False`:
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial003_py39.py hl[6] *}
    
    ## Advanced description from docstring { #advanced-description-from-docstring }
    
    You can limit the lines used from the docstring of a *path operation function* for OpenAPI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/handling-errors.md

    И вы хотите обрабатывать это исключение глобально с помощью FastAPI.
    
    Можно добавить собственный обработчик исключений с помощью `@app.exception_handler()`:
    
    {* ../../docs_src/handling_errors/tutorial003_py39.py hl[5:7,13:18,24] *}
    
    Здесь, если запросить `/unicorns/yolo`, то *операция пути* вызовет `UnicornException`.
    
    Но оно будет обработано `unicorn_exception_handler`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/metadata.md

        * Вы можете отключить это с помощью настройки `redoc_url=None`.
    
    К примеру, чтобы задать отображение Swagger UI по адресу `/documentation` и отключить ReDoc:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/middleware.md

    {* ../../docs_src/advanced_middleware/tutorial001_py39.py hl[2,6] *}
    
    ## `TrustedHostMiddleware` { #trustedhostmiddleware }
    
    Impone que todas las requests entrantes tengan correctamente configurado el header `Host`, para proteger contra ataques de HTTP Host Header.
    
    {* ../../docs_src/advanced_middleware/tutorial002_py39.py hl[2,6:8] *}
    
    Se soportan los siguientes argumentos:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_params/test_tutorial003.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
            pytest.param("tutorial003_an_py39"),
            pytest.param("tutorial003_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top