Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for 58 (0.15 sec)

  1. docs/zh/docs/advanced/async-sql-databases.md

    * 创建 `FastAPI` 应用
    * 创建事件处理器,执行数据库连接与断开操作
    
    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## 读取笔记
    
    创建读取笔记的*路径操作函数*:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! Note "笔记"
    
        注意,本例与数据库通信时使用 `await`,因此*路径操作函数*要声明为异步函数(`asnyc`)。
    
    ### 注意 `response_model=List[Note]`
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:44:40 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/security/simple-oauth2.md

    === "Python 3.10+"
    
        ```Python hl_lines="58-66  69-74  94"
        {!> ../../../docs_src/security/tutorial003_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="58-66  69-74  94"
        {!> ../../../docs_src/security/tutorial003_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:08:44 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

    === "Python 3.10+"
    
        ```Python hl_lines="58-66  69-74  94"
        {!> ../../../docs_src/security/tutorial003_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="58-66  69-74  94"
        {!> ../../../docs_src/security/tutorial003_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. docs/ru/docs/async.md

    если рабочая нагрузка предполагает **ограничение по процессору**,
    как, например, в системах машинного обучения. <!--http://new.gramota.ru/spravka/punctum?layout=item&id=58_329-->
    
    Необходимо также отметить, что Python является главным языком в области
    <abbr title="наука о данных (data science)">**дата-сайенс**</abbr>,
    машинного обучения и, особенно, глубокого обучения. Всё это делает FastAPI
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 39.9K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/async-sql-databases.md

    * ✍ 🎉 🐕‍🦺 🔗 &amp; 🔌 ⚪️➡️ 💽.
    
    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## ✍ 🗒
    
    ✍ *➡ 🛠️ 🔢* ✍ 🗒:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! Note
        👀 👈 👥 🔗 ⏮️ 💽 ⚙️ `await`, *➡ 🛠️ 🔢* 📣 ⏮️ `async`.
    
    ### 👀 `response_model=List[Note]`
    
    ⚫️ ⚙️ `typing.List`.
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. docs/em/docs/how-to/sql-databases-peewee.md

    ## 💩 🇨🇻
    
    🔜 ➡️ 👀 📁 `sql_app/crud.py`.
    
    ### ✍ 🌐 💩 🇨🇻
    
    ✍ 🌐 🎏 💩 🇨🇻 🇸🇲 🔰, 🌐 📟 📶 🎏:
    
    ```Python hl_lines="1  4-5  8-9  12-13  16-20  23-24  27-30"
    {!../../../docs_src/sql_databases_peewee/sql_app/crud.py!}
    ```
    
    📤 🔺 ⏮️ 📟 🇸🇲 🔰.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  7. docs/ja/docs/advanced/websockets.md

    WebSocketエンドポイントでは、`fastapi` から以下をインポートして使用できます。
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    これらは、他のFastAPI エンドポイント/*path operation* の場合と同じように機能します。
    
    ```Python hl_lines="58-65  68-83"
    {!../../../docs_src/websockets/tutorial002.py!}
    ```
    
    !!! info "情報"
        WebSocket で `HTTPException` を発生させることはあまり意味がありません。したがって、WebSocketの接続を直接閉じる方がよいでしょう。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Nov 13 13:58:31 GMT 2022
    - 7.2K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/security/simple-oauth2.md

    이러한 의존성 모두, 사용자가 존재하지 않거나 비활성인 경우 HTTP 오류를 반환합니다.
    
    따라서 엔드포인트에서는 사용자가 존재하고 올바르게 인증되었으며 활성 상태인 경우에만 사용자를 얻습니다:
    
    === "파이썬 3.7 이상"
    
        ```Python hl_lines="58-66  69-72  90"
        {!> ../../../docs_src/security/tutorial003.py!}
        ```
    
    === "파이썬 3.10 이상"
    
        ```Python hl_lines="55-64  67-70  88"
        {!> ../../../docs_src/security/tutorial003_py310.py!}
        ```
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 22:37:23 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  9. docs/en/docs/how-to/async-sql-encode-databases.md

    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## Read notes
    
    Create the *path operation function* to read notes:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! note
        Notice that as we communicate with the database using `await`, the *path operation function* is declared with `async`.
    
    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/en/docs/how-to/sql-databases-peewee.md

    ## CRUD utils
    
    Now let's see the file `sql_app/crud.py`.
    
    ### Create all the CRUD utils
    
    Create all the same CRUD utils as in the SQLAlchemy tutorial, all the code is very similar:
    
    ```Python hl_lines="1  4-5  8-9  12-13  16-20  23-24  27-30"
    {!../../../docs_src/sql_databases_peewee/sql_app/crud.py!}
    ```
    
    There are some differences with the code for the SQLAlchemy tutorial.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
Back to top