Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 334 for tutorial005_py310 (0.07 sec)

  1. tests/test_tutorial/test_query_params_str_validations/test_tutorial006c.py

    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial006c_py39"),
            pytest.param("tutorial006c_py310", marks=needs_py310),
            pytest.param("tutorial006c_an_py39"),
            pytest.param("tutorial006c_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
    - 5K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/response-directly.md

    In diesen Fällen können Sie den `jsonable_encoder` verwenden, um Ihre Daten zu konvertieren, bevor Sie sie an eine Response übergeben:
    
    {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *}
    
    /// note | Technische Details
    
    Sie könnten auch `from starlette.responses import JSONResponse` verwenden.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/response-directly.md

    Para esos casos, puedes usar el `jsonable_encoder` para convertir tus datos antes de pasarlos a un response:
    
    {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *}
    
    /// note | Detalles técnicos
    
    También podrías usar `from starlette.responses import JSONResponse`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/query-params-str-validations.md

    **FastAPI** te permite declarar información adicional y validación para tus parámetros.
    
    Tomemos esta aplicación como ejemplo:
    
    {* ../../docs_src/query_params_str_validations/tutorial001_py310.py hl[7] *}
    
    El parámetro de query `q` es de tipo `str | None`, lo que significa que es de tipo `str` pero también podría ser `None`, y de hecho, el valor por defecto es `None`, así que FastAPI sabrá que no es requerido.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_header_param_models/test_tutorial003.py

    from inline_snapshot import snapshot
    
    from tests.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
    - 8.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_websockets/test_tutorial002.py

    from fastapi.websockets import WebSocketDisconnect
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="app",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_app(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial002.py

    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_multiple_params.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-multiple-params.md

        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    But you can also declare multiple body parameters, e.g. `item` and `user`:
    
    {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *}
    
    
    In this case, **FastAPI** will notice that there is more than one body parameter in the function (there are two parameters that are Pydantic models).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 12:58:04 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/body-multiple-params.md

        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    Aber Sie können auch mehrere Body-Parameter deklarieren, z. B. `item` und `user`:
    
    {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *}
    
    In diesem Fall wird **FastAPI** bemerken, dass es mehr als einen Body-Parameter in der Funktion gibt (zwei Parameter, die Pydantic-Modelle sind).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/background-tasks.md

    {* ../../docs_src/background_tasks/tutorial002_an.py hl[14, 16, 23, 26] *}
    
    ////
    
    //// tab | Python 3.10+ 没Annotated
    
    /// tip
    
    尽可能选择使用 `Annotated` 的版本。
    
    ///
    
    {* ../../docs_src/background_tasks/tutorial002_py310.py hl[11, 13, 20, 23] *}
    
    ////
    
    //// tab | Python 3.8+ 没Annotated
    
    /// tip
    
    尽可能选择使用 `Annotated` 的版本。
    
    ///
    
    {* ../../docs_src/background_tasks/tutorial002.py hl[13, 15, 22, 25] *}
    
    ////
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top