Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for 22 (0.16 sec)

  1. docs_src/python_types/tutorial011_py310.py

        signup_ts: datetime | None = None
        friends: list[int] = []
    
    
    external_data = {
        "id": "123",
        "signup_ts": "2017-06-01 12:22",
        "friends": [1, "2", b"3"],
    }
    user = User(**external_data)
    print(user)
    # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]
    print(user.id)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Sep 02 15:56:35 GMT 2023
    - 461 bytes
    - Viewed (0)
  2. docs_src/python_types/tutorial011_py39.py

        friends: list[int] = []
    
    
    external_data = {
        "id": "123",
        "signup_ts": "2017-06-01 12:22",
        "friends": [1, "2", b"3"],
    }
    user = User(**external_data)
    print(user)
    # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]
    print(user.id)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Sep 02 15:56:35 GMT 2023
    - 492 bytes
    - Viewed (0)
  3. docs_src/python_types/tutorial011.py

        friends: List[int] = []
    
    
    external_data = {
        "id": "123",
        "signup_ts": "2017-06-01 12:22",
        "friends": [1, "2", b"3"],
    }
    user = User(**external_data)
    print(user)
    # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]
    print(user.id)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Sep 02 15:56:35 GMT 2023
    - 498 bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/body-multiple-params.md

    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    ✋️ 👆 💪 📣 💗 💪 🔢, ✅ `item` & `user`:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="22"
        {!> ../../../docs_src/body_multiple_params/tutorial002.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="20"
        {!> ../../../docs_src/body_multiple_params/tutorial002_py310.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 5K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/schema-extra-example.md

    Здесь мы передаём аргумент `example`, как пример данных ожидаемых в параметре `Body()`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="22-27"
        {!> ../../../docs_src/schema_extra_example/tutorial003_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="22-27"
        {!> ../../../docs_src/schema_extra_example/tutorial003_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="23-28"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/body-multiple-params.md

    === "Python 3.10+"
    
        ```Python hl_lines="20"
        {!> ../../../docs_src/body_multiple_params/tutorial002_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="22"
        {!> ../../../docs_src/body_multiple_params/tutorial002.py!}
        ```
    
    In this case, **FastAPI** will notice that there are more than one body parameters in the function (two parameters that are Pydantic models).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  7. docs/de/docs/how-to/extending-openapi.md

    ```
    
    ### Das OpenAPI-Schema ändern
    
    Jetzt können Sie die ReDoc-Erweiterung hinzufügen und dem `info`-„Objekt“ im OpenAPI-Schema ein benutzerdefiniertes `x-logo` hinzufügen:
    
    ```Python hl_lines="22-24"
    {!../../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Zwischenspeichern des OpenAPI-Schemas
    
    Sie können die Eigenschaft `.openapi_schema` als „Cache“ verwenden, um Ihr generiertes Schema zu speichern.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 14 16:44:05 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/response-model.md

    ... haben wir deklariert, dass `response_model` das Modell `UserOut` ist, welches das Passwort nicht enthält:
    
    === "Python 3.10+"
    
        ```Python hl_lines="22"
        {!> ../../../docs_src/response_model/tutorial003_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="22"
        {!> ../../../docs_src/response_model/tutorial003.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:26:58 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  9. docs/en/docs/how-to/async-sql-encode-databases.md

    ## Import and set up `SQLAlchemy`
    
    * Import `SQLAlchemy`.
    * Create a `metadata` object.
    * Create a table `notes` using the `metadata` object.
    
    ```Python hl_lines="4  14  16-22"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! tip
        Notice that all this code is pure SQLAlchemy Core.
    
        `databases` is not doing anything here yet.
    
    ## Import and set up `databases`
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/response-model.md

        ```
    
    ...👥 📣 `response_model` 👆 🏷 `UserOut`, 👈 🚫 🔌 🔐:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="22"
        {!> ../../../docs_src/response_model/tutorial003.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="22"
        {!> ../../../docs_src/response_model/tutorial003_py310.py!}
        ```
    
    , **FastAPI** 🔜 ✊ 💅 🖥 👅 🌐 💽 👈 🚫 📣 🔢 🏷 (⚙️ Pydantic).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 16K bytes
    - Viewed (0)
Back to top