Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Lyding (0.1 sec)

  1. docs/en/docs/tutorial/extra-models.md

    It will be defined in OpenAPI with `anyOf`.
    
    To do that, use the standard Python type hint <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/async-sql-encode-databases.md

    ```
    
    !!! note
        Notice that as we communicate with the database using `await`, the *path operation function* is declared with `async`.
    
    ### Notice the `response_model=List[Note]`
    
    It uses `typing.List`.
    
    That documents (and validates, serializes, filters) the output data, as a `list` of `Note`s.
    
    ## Create notes
    
    Create the *path operation function* to create notes:
    
    ```Python hl_lines="61-65"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/extra-models.md

        ```
    
    ## `Union` ⚖️ `anyOf`
    
    👆 💪 📣 📨 `Union` 2️⃣ 🆎, 👈 ⛓, 👈 📨 🔜 🙆 2️⃣.
    
    ⚫️ 🔜 🔬 🗄 ⏮️ `anyOf`.
    
    👈, ⚙️ 🐩 🐍 🆎 🔑 <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/body-nested-models.md

    ### Importe `List` do typing
    
    Primeiramente, importe `List` do módulo `typing` que já vem por padrão no Python:
    
    ```Python hl_lines="1"
    {!../../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### Declare a `List` com um parâmetro de tipo
    
    Para declarar tipos que têm parâmetros de tipo(tipos internos), como `list`, `dict`, `tuple`:
    
    * Importe os do modulo `typing`
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. docs_src/extra_data_types/tutorial001_an_py39.py

    from datetime import datetime, time, timedelta
    from typing import Annotated, Union
    from uuid import UUID
    
    from fastapi import Body, FastAPI
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def read_items(
        item_id: UUID,
        start_datetime: Annotated[datetime, Body()],
        end_datetime: Annotated[datetime, Body()],
        process_after: Annotated[timedelta, Body()],
        repeat_at: Annotated[Union[time, None], Body()] = None,
    ):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 00:11:40 UTC 2024
    - 801 bytes
    - Viewed (0)
  6. docs_src/path_operation_advanced_configuration/tutorial007.py

    from typing import List
    
    import yaml
    from fastapi import FastAPI, HTTPException, Request
    from pydantic import BaseModel, ValidationError
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        tags: List[str]
    
    
    @app.post(
        "/items/",
        openapi_extra={
            "requestBody": {
                "content": {"application/x-yaml": {"schema": Item.model_json_schema()}},
                "required": True,
            },
        },
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 822 bytes
    - Viewed (0)
  7. docs/en/docs/advanced/path-operation-advanced-configuration.md

    If you want to use your APIs' function names as `operationId`s, you can iterate over all of them and override each *path operation's* `operation_id` using their `APIRoute.name`.
    
    You should do it after adding all your *path operations*.
    
    ```Python hl_lines="2  12-21  24"
    {!../../../docs_src/path_operation_advanced_configuration/tutorial002.py!}
    ```
    
    !!! tip
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. tests/test_dependency_duplicates.py

    from typing import List
    
    from dirty_equals import IsDict
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    client = TestClient(app)
    
    
    class Item(BaseModel):
        data: str
    
    
    def duplicate_dependency(item: Item):
        return item
    
    
    def dependency(item2: Item):
        return item2
    
    
    def sub_duplicate_dependency(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. fastapi/utils.py

    import re
    import warnings
    from dataclasses import is_dataclass
    from typing import (
        TYPE_CHECKING,
        Any,
        Dict,
        MutableMapping,
        Optional,
        Set,
        Type,
        Union,
        cast,
    )
    from weakref import WeakKeyDictionary
    
    import fastapi
    from fastapi._compat import (
        PYDANTIC_V2,
        BaseConfig,
        ModelField,
        PydanticSchemaGenerationError,
        Undefined,
        UndefinedType,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. docs/en/docs/deployment/manually.md

        <div class="termy">
    
        ```console
        $ pip install "uvicorn[standard]"
    
        ---> 100%
        ```
    
        </div>
    
        !!! tip
            By adding the `standard`, Uvicorn will install and use some recommended extra dependencies.
    
            That including `uvloop`, the high-performance drop-in replacement for `asyncio`, that provides the big concurrency performance boost.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 02 22:37:31 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top