- Sort Score
- Num 10 results
- Language All
Results 921 - 930 of 2,110 for py$ (0.01 seconds)
-
docs/ko/docs/how-to/configure-swagger-ui.md
{* ../../docs_src/configure_swagger_ui/tutorial001_py310.py hl[3] *} ...그럼 Swagger UI에서 더 이상 구문 강조 기능이 표시되지 않습니다: <img src="/img/tutorial/extending-openapi/image03.png"> ## 테마 변경 { #change-the-theme } 동일한 방식으로 `"syntaxHighlight.theme"` 키를 사용하여 구문 강조 테마를 설정할 수 있습니다 (중간에 점이 포함된 것을 참고하십시오). {* ../../docs_src/configure_swagger_ui/tutorial002_py310.py hl[3] *} 이 설정은 구문 강조 색상 테마를 변경합니다:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 3.2K bytes - Click Count (0) -
docs/es/docs/tutorial/first-steps.md
# Primeros Pasos { #first-steps } El archivo FastAPI más simple podría verse así: {* ../../docs_src/first_steps/tutorial001_py310.py *} Copia eso en un archivo `main.py`. Ejecuta el servidor en vivo: <div class="termy"> ```console $ <font color="#4E9A06">fastapi</font> dev <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span> Starting development server 🚀Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 13.9K bytes - Click Count (0) -
docs/fr/docs/tutorial/first-steps.md
# Démarrer { #first-steps } Le fichier **FastAPI** le plus simple possible pourrait ressembler à ceci : {* ../../docs_src/first_steps/tutorial001_py310.py *} Copiez cela dans un fichier `main.py`. Démarrez le serveur en direct : <div class="termy"> ```console $ <font color="#4E9A06">fastapi</font> dev <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span> Starting development server 🚀Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 15.1K bytes - Click Count (0) -
docs/pt/docs/tutorial/first-steps.md
# Primeiros Passos { #first-steps } O arquivo FastAPI mais simples pode se parecer com: {* ../../docs_src/first_steps/tutorial001_py310.py *} Copie o conteúdo para um arquivo `main.py`. Execute o servidor ao vivo: <div class="termy"> ```console $ <font color="#4E9A06">fastapi</font> dev <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span> Starting development server 🚀Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 14.2K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/dependencies/dependencies-with-yield.md
例如,你可以用它建立一個資料庫 session,並在完成後關閉。 只有 `yield` 之前(含 `yield` 本身)的程式碼會在產生回應之前執行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} 由 `yield` 產生的值會被注入到路徑操作(path operation)與其他相依中: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} 位於 `yield` 之後的程式碼會在回應之後執行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip 你可以使用 `async` 或一般函式。 **FastAPI** 都會正確處理,和一般相依相同。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 11.9K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/testing-events.md
當你需要在測試中執行 lifespan(生命週期)時,你可以使用 TestClient 並搭配 with 陳述式: {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *} 你可以閱讀更多細節:[在測試中執行 lifespan](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)(Starlette 官方文件)。 對於已棄用的 `startup` 和 `shutdown` 事件,你可以這樣使用 TestClient:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 618 bytes - Click Count (0) -
docs/en/docs/tutorial/bigger-applications.md
Let's say you have a file structure like this: ``` . ├── app │ ├── __init__.py │ ├── main.py │ ├── dependencies.py │ └── routers │ │ ├── __init__.py │ │ ├── items.py │ │ └── users.py │ └── internal │ ├── __init__.py │ └── admin.py ``` /// tip There are several `__init__.py` files: one in each directory or subdirectory.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 19.2K bytes - Click Count (0) -
docs/en/docs/tutorial/cookie-params.md
{* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *} ## Declare `Cookie` parameters { #declare-cookie-parameters } Then declare the cookie parameters using the same structure as with `Path` and `Query`. You can define the default value as well as all the extra validation or annotation parameters: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *} /// note | Technical DetailsCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Sep 20 17:49:27 GMT 2025 - 1.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/stream-json-lines.md
要用 FastAPI 串流 JSON Lines,你可以在你的*路徑操作函式*中改用 `yield` 逐一產生項目,而不是用 `return`。 {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *} 如果你要回傳的每個 JSON 項目型別都是 `Item`(一個 Pydantic 模型),而且該函式是 async,你可以將回傳型別宣告為 `AsyncIterable[Item]`: {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[9:11,22] *} 如果你宣告了回傳型別,FastAPI 會用它來進行資料的**驗證**、在 OpenAPI 中**文件化**、**過濾**,並使用 Pydantic 進行**序列化**。 /// tipCreated: 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/zh-hant/docs/tutorial/dependencies/classes-as-dependencies.md
接著,我們可以把上面的相依項(dependable)`common_parameters` 改成類別 `CommonQueryParams`: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *} 注意用來建立該類別實例的 `__init__` 方法: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *} ...它的參數與我們之前的 `common_parameters` 相同: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *} **FastAPI** 會用這些參數來「解析」該相依性。 兩種情況下都會有: - 一個可選的查詢參數 `q`,型別為 `str`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 6.7K bytes - Click Count (0)