Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 914 for Tip (0.01 seconds)

  1. docs/en/docs/tutorial/query-params-str-validations.md

    But now, having `Query(max_length=50)` inside of `Annotated`, we are telling FastAPI that we want it to have **additional validation** for this value, we want it to have maximum 50 characters. 😎
    
    /// tip
    
    Here we are using `Query()` because this is a **query parameter**. Later we will see others like `Path()`, `Body()`, `Header()`, and `Cookie()`, that also accept the same arguments as `Query()`.
    
    ///
    
    FastAPI will now:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/server-sent-events.md

    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    SSE is commonly used for AI chat streaming, live notifications, logs and observability, and other cases where the server pushes updates to the client.
    
    /// tip
    
    If you want to stream binary data, for example video or audio, check the advanced guide: [Stream Data](../advanced/stream-data.md).
    
    ///
    
    ## Stream SSE with FastAPI { #stream-sse-with-fastapi }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/stream-json-lines.md

    ///
    
    ## Use Cases { #use-cases }
    
    You could use this to stream data from an **AI LLM** service, from **logs** or **telemetry**, or from other types of data that can be structured in **JSON** items.
    
    /// tip
    
    If you want to stream binary data, for example video or audio, check the advanced guide: [Stream Data](../advanced/stream-data.md).
    
    ///
    
    ## Stream JSON Lines with FastAPI { #stream-json-lines-with-fastapi }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/path-params.md

    Then create class attributes with fixed values, which will be the available valid values:
    
    {* ../../docs_src/path_params/tutorial005_py310.py hl[1,6:9] *}
    
    /// tip
    
    If you are wondering, "AlexNet", "ResNet", and "LeNet" are just names of Machine Learning <dfn title="Technically, Deep Learning model architectures">models</dfn>.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/advanced/security/index.md

    # 進階安全性 { #advanced-security }
    
    ## 額外功能 { #additional-features }
    
    除了[教學 - 使用者指南:安全性](../../tutorial/security/index.md)中涵蓋的內容外,還有一些用來處理安全性的額外功能。
    
    /// tip
    
    以下各節**不一定是「進階」**內容。
    
    而且你的情境很可能可以在其中找到解決方案。
    
    ///
    
    ## 請先閱讀教學 { #read-the-tutorial-first }
    
    以下各節假設你已閱讀主要的[教學 - 使用者指南:安全性](../../tutorial/security/index.md)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 613 bytes
    - Click Count (0)
  6. docs/zh-hant/docs/tutorial/stream-json-lines.md

    由於每個 JSON 物件會以換行分隔,它們的內容中不能包含實際的換行字元,但可以包含跳脫後的換行(`\n`),這是 JSON 標準的一部分。
    
    不過通常你不需要為此煩惱,這些都會自動處理,繼續往下看吧。🤓
    
    ///
    
    ## 使用情境 { #use-cases }
    
    你可以用這種方式從 **AI LLM** 服務、**日誌**或**遙測**串流資料,或任何能以 **JSON** 項目結構化的其他型態資料。
    
    /// tip
    
    如果你想串流二進位資料,例如影像或音訊,請參考進階指南:[串流資料](../advanced/stream-data.md)。
    
    ///
    
    ## 使用 FastAPI 串流 JSON Lines { #stream-json-lines-with-fastapi }
    
    要用 FastAPI 串流 JSON Lines,你可以在你的*路徑操作函式*中改用 `yield` 逐一產生項目,而不是用 `return`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  7. docs/ko/docs/tutorial/metadata.md

    다음과 같이 설정할 수 있습니다:
    
    {* ../../docs_src/metadata/tutorial001_py310.py hl[3:16, 19:32] *}
    
    /// tip | 팁
    
    `description` 필드에 마크다운을 사용할 수 있으며, 출력에서 렌더링됩니다.
    
    ///
    
    이 구성을 사용하면 문서 자동화(로 생성된) API 문서는 다음과 같이 보입니다:
    
    <img src="/img/tutorial/metadata/image01.png">
    
    ## 라이선스 식별자 { #license-identifier }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/index.md

          <span style="background-color:#007166"><font color="#D3D7CF"> tip </font></span>  Running in development mode, for production use:
                 <b>fastapi run</b>
    
                 Logs:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  9. docs/zh/docs/tutorial/bigger-applications.md

    │   ├── main.py
    │   ├── dependencies.py
    │   └── routers
    │   │   ├── __init__.py
    │   │   ├── items.py
    │   │   └── users.py
    │   └── internal
    │       ├── __init__.py
    │       └── admin.py
    ```
    
    /// tip | 提示
    
    上面有几个 `__init__.py` 文件:每个目录或子目录中都有一个。
    
    这就是能将代码从一个文件导入到另一个文件的原因。
    
    例如,在 `app/main.py` 中,你可以有如下一行:
    
    ```
    from app.routers import items
    ```
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 19.5K bytes
    - Click Count (0)
  10. docs/zh/docs/tutorial/server-sent-events.md

    看起来像这样:
    
    ```
    data: {"name": "Portal Gun", "price": 999.99}
    
    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    SSE 常用于 AI 聊天流式输出、实时通知、日志与可观测性,以及其他服务器向客户端推送更新的场景。
    
    /// tip | 提示
    
    如果你想流式传输二进制数据(例如视频或音频),请查看高级指南:[流式传输数据](../advanced/stream-data.md)。
    
    ///
    
    ## 使用 FastAPI 流式传输 SSE { #stream-sse-with-fastapi }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 4.6K bytes
    - Click Count (0)
Back to Top