Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 364 for tutorial002_py310 (0.91 sec)

  1. docs/de/docs/advanced/dataclasses.md

    ///
    
    ## Datenklassen in `response_model` { #dataclasses-in-response-model }
    
    Sie können `dataclasses` auch im Parameter `response_model` verwenden:
    
    {* ../../docs_src/dataclasses_/tutorial002_py310.py hl[1,6:12,18] *}
    
    Die Datenklasse wird automatisch in eine Pydantic-Datenklasse konvertiert.
    
    Auf diese Weise wird deren Schema in der Benutzeroberfläche der API-Dokumentation angezeigt:
    
    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/en/docs/advanced/dataclasses.md

    ///
    
    ## Dataclasses in `response_model` { #dataclasses-in-response-model }
    
    You can also use `dataclasses` in the `response_model` parameter:
    
    {* ../../docs_src/dataclasses_/tutorial002_py310.py hl[1,6:12,18] *}
    
    The dataclass will be automatically converted to a Pydantic dataclass.
    
    This way, its schema will show up in the API docs user interface:
    
    <img src="/img/tutorial/dataclasses/image01.png">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body.md

    First, you need to import `BaseModel` from `pydantic`:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Create your data model { #create-your-data-model }
    
    Then you declare your data model as a class that inherits from `BaseModel`.
    
    Use standard Python types for all the attributes:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. docs/de/docs/how-to/separate-openapi-schemas.md

    Nehmen wir an, Sie haben ein Pydantic-Modell mit Defaultwerten wie dieses:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### Modell für Eingabe { #model-for-input }
    
    Wenn Sie dieses Modell wie hier als Eingabe verwenden:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *}
    
    ... dann ist das Feld `description` **nicht erforderlich**. Weil es den Defaultwert `None` hat.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. 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)
  6. tests/test_tutorial/test_path_operation_configurations/test_tutorial002.py

    from dirty_equals import IsList
    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) -> TestClient:
        mod = importlib.import_module(
            f"docs_src.path_operation_configuration.{request.param}"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body/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.{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
    - 5.3K bytes
    - Viewed (0)
  8. docs/es/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Aquí, aunque nuestra *path operation function* está devolviendo el mismo usuario de entrada que contiene la contraseña:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...hemos declarado el `response_model` para ser nuestro modelo `UserOut`, que no incluye la contraseña:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  9. docs/pt/docs/advanced/additional-responses.md

    {* ../../docs_src/additional_responses/tutorial002_py310.py hl[17:22,26] *}
    
    /// note | Nota
    
    Note que você deve retornar a imagem utilizando um `FileResponse` diretamente.
    
    ///
    
    /// info | Informação
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. pyproject.toml

    "docs_src/security/tutorial004_an_py39.py" = ["B904"]
    "docs_src/security/tutorial004_an_py310.py" = ["B904"]
    "docs_src/security/tutorial004_py310.py" = ["B904"]
    "docs_src/security/tutorial005_an_py310.py" = ["B904"]
    "docs_src/security/tutorial005_an_py39.py" = ["B904"]
    "docs_src/security/tutorial005_py310.py" = ["B904"]
    "docs_src/security/tutorial005_py39.py" = ["B904"]
    "docs_src/dependencies/tutorial008b_py39.py" = ["B904"]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top