Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for 24 (0.13 sec)

  1. docs/en/docs/how-to/nosql-databases-couchbase.md

    ```
    
    ## Create Pydantic models
    
    As **Couchbase** "documents" are actually just "JSON objects", we can model them with Pydantic.
    
    ### `User` model
    
    First, let's create a `User` model:
    
    ```Python hl_lines="24-28"
    {!../../../docs_src/nosql_databases/tutorial001.py!}
    ```
    
    We will use this model in our *path operation function*, so, we don't include in it the `hashed_password`.
    
    ### `UserInDB` model
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/testing-events.md

    # Events testen: Hochfahren – Herunterfahren
    
    Wenn Sie in Ihren Tests Ihre Event-Handler (`startup` und `shutdown`) ausführen wollen, können Sie den `TestClient` mit einer `with`-Anweisung verwenden:
    
    ```Python hl_lines="9-12  20-24"
    {!../../../docs_src/app_testing/tutorial003.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:40 GMT 2024
    - 291 bytes
    - Viewed (0)
  3. docs/em/docs/advanced/testing-events.md

    # 🔬 🎉: 🕴 - 🤫
    
    🕐❔ 👆 💪 👆 🎉 🐕‍🦺 (`startup` & `shutdown`) 🏃 👆 💯, 👆 💪 ⚙️ `TestClient` ⏮️ `with` 📄:
    
    ```Python hl_lines="9-12  20-24"
    {!../../../docs_src/app_testing/tutorial003.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 248 bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/schema-extra-example.md

        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial004_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="24-50"
        {!> ../../../docs_src/schema_extra_example/tutorial004_an.py!}
        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip Заметка
            Рекомендуется использовать версию с `Annotated`, если это возможно.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/body-multiple-params.md

        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="23"
        {!> ../../../docs_src/body_multiple_params/tutorial003_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="24"
        {!> ../../../docs_src/body_multiple_params/tutorial003_an.py!}
        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/sql-databases.md

    ### 创建模型属性/列
    
    现在创建所有模型(类)属性。
    
    这些属性中的每一个都代表其相应数据库表中的一列。
    
    我们使用`Column`来表示 SQLAlchemy 中的默认值。
    
    我们传递一个 SQLAlchemy “类型”,如`Integer`、`String`和`Boolean`,它定义了数据库中的类型,作为参数。
    
    ```Python hl_lines="1  10-13  21-24"
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    ### 创建关系
    
    现在创建关系。
    
    为此,我们使用SQLAlchemy  ORM提供的`relationship`。
    
    这将或多或少会成为一种“神奇”属性,其中表示该表与其他相关的表中的值。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/security/http-basic-auth.md

    === "Python 3.9+"
    
        ```Python hl_lines="1  12-24"
        {!> ../../../docs_src/security/tutorial007_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1  12-24"
        {!> ../../../docs_src/security/tutorial007_an.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/schema-extra-example.md

    여러분의 앱이 받을 수 있는 데이터 예제를 선언할 수 있습니다.
    
    여기 이를 위한 몇가지 방식이 있습니다.
    
    ## Pydantic 모델 속 추가 JSON 스키마 데이터
    
    생성된 JSON 스키마에 추가될 Pydantic 모델을 위한 `examples`을 선언할 수 있습니다.
    
    === "Python 3.10+ Pydantic v2"
    
        ```Python hl_lines="13-24"
        {!> ../../../docs_src/schema_extra_example/tutorial001_py310.py!}
        ```
    
    === "Python 3.10+ Pydantic v1"
    
        ```Python hl_lines="13-23"
        {!> ../../../docs_src/schema_extra_example/tutorial001_py310_pv1.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Feb 09 12:35:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/response-model.md

    === "Python 3.10+"
    
        ```Python hl_lines="24"
        {!> ../../../docs_src/response_model/tutorial003_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="24"
        {!> ../../../docs_src/response_model/tutorial003.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 30.5K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/security/http-basic-auth.md

    === "Python 3.9+"
    
        ```Python hl_lines="1  12-24"
        {!> ../../../docs_src/security/tutorial007_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1  12-24"
        {!> ../../../docs_src/security/tutorial007_an.py!}
        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip "Tipp"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:08 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top