Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for 24 (0.38 sec)

  1. docs/zh/docs/advanced/testing-events.md

    # 测试事件:启动 - 关闭
    
    使用 `TestClient` 和 `with` 语句,在测试中运行事件处理器(`startup` 与 `shutdown`)。
    
    ```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: Sun Jan 28 18:21:02 GMT 2024
    - 228 bytes
    - Viewed (0)
  2. docs/en/docs/advanced/testing-events.md

    # Testing Events: startup - shutdown
    
    When you need your event handlers (`startup` and `shutdown`) to run in your tests, you can use the `TestClient` with a `with` statement:
    
    ```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 Aug 29 14:02:58 GMT 2020
    - 262 bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/response-model.md

        {!> ../../../docs_src/response_model/tutorial003.py!}
        ```
    
    这样,即便我们的*路径操作函数*将会返回包含密码的相同输入用户:
    
    === "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!}
        ```
    
    ...我们已经将 `response_model` 声明为了不包含密码的 `UserOut` 模型:
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/response-model.md

    Here, even though our *path operation function* is returning the same input user that contains the password:
    
    === "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: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/response-model.md

    代わりに、平文のパスワードを持つ入力モデルと、パスワードを持たない出力モデルを作成することができます:
    
    ```Python hl_lines="9 11 16"
    {!../../../docs_src/response_model/tutorial003.py!}
    ```
    
    ここでは、*path operation関数*がパスワードを含む同じ入力ユーザーを返しているにもかかわらず:
    
    ```Python hl_lines="24"
    {!../../../docs_src/response_model/tutorial003.py!}
    ```
    
    ...`response_model`を`UserOut`と宣言したことで、パスワードが含まれていません:
    
    ```Python hl_lines="22"
    {!../../../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
    - 9.3K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/dependencies/sub-dependencies.md

        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="23"
        {!> ../../../docs_src/dependencies/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="24"
        {!> ../../../docs_src/dependencies/tutorial005_an.py!}
        ```
    
    === "Python 3.10 nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:09:48 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/nosql-databases.md

    ```Python hl_lines="12-21"
    {!../../../docs_src/nosql_databases/tutorial001.py!}
    ```
    
    ## ✍ Pydantic 🏷
    
    **🗄** "📄" 🤙 "🎻 🎚", 👥 💪 🏷 👫 ⏮️ Pydantic.
    
    ### `User` 🏷
    
    🥇, ➡️ ✍ `User` 🏷:
    
    ```Python hl_lines="24-28"
    {!../../../docs_src/nosql_databases/tutorial001.py!}
    ```
    
    👥 🔜 ⚙️ 👉 🏷 👆 *➡ 🛠️ 🔢*,, 👥 🚫 🔌 ⚫️ `hashed_password`.
    
    ### `UserInDB` 🏷
    
    🔜, ➡️ ✍ `UserInDB` 🏷.
    
    👉 🔜 ✔️ 💽 👈 🤙 🏪 💽.
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/response-model.md

    Obwohl unsere *Pfadoperation-Funktion* hier denselben `user` von der Eingabe zurückgibt, der das Passwort enthält:
    
    === "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: Sat Mar 30 20:26:58 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  9. 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 May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 14 16:44:05 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/response-model.md

        ```
    
    📥, ✋️ 👆 *➡ 🛠️ 🔢* 🛬 🎏 🔢 👩‍💻 👈 🔌 🔐:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="24"
        {!> ../../../docs_src/response_model/tutorial003.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="24"
        {!> ../../../docs_src/response_model/tutorial003_py310.py!}
        ```
    
    ...👥 📣 `response_model` 👆 🏷 `UserOut`, 👈 🚫 🔌 🔐:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 16K bytes
    - Viewed (0)
Back to top