Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for 47 (0.26 sec)

  1. docs/en/docs/advanced/testing-database.md

    ## Test the app
    
    Then we can just test the app as normally.
    
    ```Python hl_lines="32-47"
    {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/testing-database.md

    ```
    
    !!! tip
        📟 `override_get_db()` 🌖 ⚫️❔ 🎏 `get_db()`, ✋️ `override_get_db()` 👥 ⚙️ `TestingSessionLocal` 🔬 💽 ↩️.
    
    ## 💯 📱
    
    ⤴️ 👥 💪 💯 📱 🛎.
    
    ```Python hl_lines="32-47"
    {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/websockets.md

    ```Python hl_lines="2  6-38  41-43"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## Einen `websocket` erstellen
    
    Erstellen Sie in Ihrer **FastAPI**-Anwendung einen `websocket`:
    
    ```Python hl_lines="1  46-47"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    !!! note "Technische Details"
        Sie können auch `from starlette.websockets import WebSocket` verwenden.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/schema-extra-example.md

        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip Заметка
            Рекомендуется использовать версию с `Annotated`, если это возможно.
    
        ```Python hl_lines="21-47"
        {!> ../../../docs_src/schema_extra_example/tutorial004.py!}
        ```
    
    ### Аргумент "examples" в UI документации
    
    С аргументом `examples`, добавленным в `Body()`, страница документации `/docs` будет выглядеть так:
    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/zh/docs/tutorial/sql-databases.md

        而 Pydantic 也使用“模型”这个术语 来指代不同的东西,即数据验证、转换以及文档类和实例。
    
    从`database`(来自上面的`database.py`文件)导入`Base`。
    
    创建从它继承的类。
    
    这些类就是 SQLAlchemy 模型。
    
    ```Python hl_lines="4  7-8  18-19"
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    这个`__tablename__`属性是用来告诉 SQLAlchemy 要在数据库中为每个模型使用的数据库表的名称。
    
    ### 创建模型属性/列
    
    现在创建所有模型(类)属性。
    
    这些属性中的每一个都代表其相应数据库表中的一列。
    
    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)
  6. docs/en/docs/advanced/websockets.md

    ```Python hl_lines="2  6-38  41-43"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## Create a `websocket`
    
    In your **FastAPI** application, create a `websocket`:
    
    ```Python hl_lines="1  46-47"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    !!! note "Technical Details"
        You could also use `from starlette.websockets import WebSocket`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/websockets.md

    ```Python hl_lines="2  6-38  41-43"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## 创建 `websocket`
    
    在您的 **FastAPI** 应用程序中,创建一个 `websocket`:
    
    ```Python hl_lines="1  46-47"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    !!! note "技术细节"
        您也可以使用 `from starlette.websockets import WebSocket`。
    
        **FastAPI** 直接提供了相同的 `WebSocket`,只是为了方便开发人员。但它直接来自 Starlette。
    
    ## 等待消息并发送消息
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6K bytes
    - Viewed (0)
  8. docs/em/docs/advanced/websockets.md

    ```Python hl_lines="2  6-38  41-43"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## ✍ `websocket`
    
    👆 **FastAPI** 🈸, ✍ `websocket`:
    
    ```Python hl_lines="1  46-47"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    !!! note "📡 ℹ"
        👆 💪 ⚙️ `from starlette.websockets import WebSocket`.
    
        **FastAPI** 🚚 🎏 `WebSocket` 🔗 🏪 👆, 👩‍💻. ✋️ ⚫️ 👟 🔗 ⚪️➡️ 💃.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/schema-extra-example.md

    * `description`: 📏 📛 👈 💪 🔌 ✍ ✍.
    * `value`: 👉 ☑ 🖼 🎦, ✅ `dict`.
    * `externalValue`: 🎛 `value`, 📛 ☝ 🖼. 👐 👉 5️⃣📆 🚫 🐕‍🦺 📚 🧰 `value`.
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="21-47"
        {!> ../../../docs_src/schema_extra_example/tutorial004.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="19-45"
        {!> ../../../docs_src/schema_extra_example/tutorial004_py310.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. docs/ja/docs/advanced/websockets.md

    ```Python hl_lines="2  6-38  41-43"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## `websocket` を作成する
    
    **FastAPI** アプリケーションで、`websocket` を作成します。
    
    ```Python hl_lines="1  46-47"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    !!! note "技術詳細"
        `from starlette.websockets import WebSocket` を使用しても構いません.
    
        **FastAPI** は開発者の利便性のために、同じ `WebSocket` を提供します。しかし、こちらはStarletteから直接提供されるものです。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Nov 13 13:58:31 GMT 2022
    - 7.2K bytes
    - Viewed (0)
Back to top