- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 914 for Tip (0.01 seconds)
-
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) -
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) -
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) -
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) -
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) -
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) -
docs/ko/docs/tutorial/metadata.md
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) -
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) -
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) -
docs/zh/docs/tutorial/server-sent-events.md
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)