Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 550 for tutorial008d_py39 (0.08 sec)

  1. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

    from types import ModuleType
    
    import pytest
    from fastapi.testclient import TestClient
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="mod",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
        ],
    )
    def get_mod(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.openapi_callbacks.{request.param}")
        return mod
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_updates/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_py39",
            pytest.param("tutorial001_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_updates.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_cookie_param_models/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_py39",
            pytest.param("tutorial001_py310", marks=needs_py310),
            "tutorial001_an_py39",
            pytest.param("tutorial001_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
    - 6K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/response-cookies.md

    Puedes declarar un parámetro de tipo `Response` en tu *path operation function*.
    
    Y luego puedes establecer cookies en ese objeto de response *temporal*.
    
    {* ../../docs_src/response_cookies/tutorial002_py39.py hl[1, 8:9] *}
    
    Y entonces puedes devolver cualquier objeto que necesites, como normalmente lo harías (un `dict`, un modelo de base de datos, etc).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. docs/ru/docs/advanced/openapi-webhooks.md

    {* ../../docs_src/openapi_webhooks/tutorial001_py39.py hl[9:13,36:53] *}
    
    Определенные вами вебхуки попадут в схему **OpenAPI** и в автоматический **интерфейс документации**.
    
    /// info | Информация
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/settings.md

    Sie können dieselben Validierungs-Funktionen und -Tools verwenden, die Sie für Pydantic-Modelle verwenden, z. B. verschiedene Datentypen und zusätzliche Validierungen mit `Field()`.
    
    {* ../../docs_src/settings/tutorial001_py39.py hl[2,5:8,11] *}
    
    /// tip | Tipp
    
    Für ein schnelles Copy-and-paste verwenden Sie nicht dieses Beispiel, sondern das letzte unten.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/handling-errors.md

    ### `HTTPException` importieren { #import-httpexception }
    
    {* ../../docs_src/handling_errors/tutorial001_py39.py hl[1] *}
    
    ### Eine `HTTPException` in Ihrem Code auslösen { #raise-an-httpexception-in-your-code }
    
    `HTTPException` ist eine normale Python-Exception mit zusätzlichen Daten, die für APIs relevant sind.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/debugging.md

    ## Chamar `uvicorn` { #call-uvicorn }
    
    Em sua aplicação FastAPI, importe e execute `uvicorn` diretamente:
    
    {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *}
    
    ### Sobre `__name__ == "__main__"` { #about-name-main }
    
    O objetivo principal de `__name__ == "__main__"` é ter algum código que seja executado quando seu arquivo for chamado com:
    
    <div class="termy">
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_query_param_models/test_tutorial001.py

    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py39"),
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/using-request-directly.md

    Let's imagine you want to get the client's IP address/host inside of your *path operation function*.
    
    For that you need to access the request directly.
    
    {* ../../docs_src/using_request_directly/tutorial001_py39.py hl[1,7:8] *}
    
    By declaring a *path operation function* parameter with the type being the `Request` **FastAPI** will know to pass the `Request` in that parameter.
    
    /// tip
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top