Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 981 for tutorial002_py310 (0.08 seconds)

  1. docs/zh-hant/docs/advanced/generate-clients.md

    ## 含標籤的 FastAPI 應用 { #fastapi-app-with-tags }
    
    在許多情況下,你的 FastAPI 應用會更大,你可能會用標籤將不同群組的 *路徑操作* 分開。
    
    例如,你可以有一個 **items** 區塊與另一個 **users** 區塊,並透過標籤區分:
    
    {* ../../docs_src/generate_clients/tutorial002_py310.py hl[21,26,34] *}
    
    ### 使用標籤產生 TypeScript 用戶端 { #generate-a-typescript-client-with-tags }
    
    若你為使用標籤的 FastAPI 應用產生用戶端,產生器通常也會依標籤將用戶端程式碼分開。
    
    如此一來,用戶端程式碼就能有條理地正確分組與排列:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/query-params-str-validations.md

    ///
    
    This is how you would use `Query()` as the default value of your function parameter, setting the parameter `max_length` to 50:
    
    {* ../../docs_src/query_params_str_validations/tutorial002_py310.py hl[7] *}
    
    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)
  3. docs/ko/docs/tutorial/query-params-str-validations.md

    새 코드를 작성할 때와 가능할 때는 위에서 설명한 대로 `Annotated`를 사용하세요. 여러 장점이 있고(아래에서 설명합니다) 단점은 없습니다. 🍰
    
    ///
    
    다음은 함수 매개변수의 기본값으로 `Query()`를 사용하면서 `max_length`를 50으로 설정하는 방법입니다:
    
    {* ../../docs_src/query_params_str_validations/tutorial002_py310.py hl[7] *}
    
    이 경우(`Annotated`를 사용하지 않는 경우) 함수에서 기본값 `None`을 `Query()`로 바꿔야 하므로, 이제 `Query(default=None)`로 기본값을 설정해야 합니다. (최소한 FastAPI 입장에서는) 이 인자는 해당 기본값을 정의하는 것과 같은 목적을 수행합니다.
    
    그러므로:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  4. docs/en/docs/advanced/behind-a-proxy.md

    Alternatively, if you don't have a way to provide a command line option like `--root-path` or equivalent, you can set the `root_path` parameter when creating your FastAPI app:
    
    {* ../../docs_src/behind_a_proxy/tutorial002_py310.py hl[3] *}
    
    Passing the `root_path` to `FastAPI` would be the equivalent of passing the `--root-path` command line option to Uvicorn or Hypercorn.
    
    ### About `root_path` { #about-root-path }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  5. docs/ja/docs/python-types.md

    簡単な例から始めてみましょう:
    
    {* ../../docs_src/python_types/tutorial001_py310.py *}
    
    このプログラムを呼び出すと、以下が出力されます:
    
    ```
    John Doe
    ```
    
    この関数は以下のようなことを行います:
    
    * `first_name` と `last_name` を取得します。
    * `title()` を用いて、それぞれの最初の文字を大文字に変換します。
    * 真ん中にスペースを入れて<dfn title="1つにまとめます。片方の内容をもう片方の後ろに続けます。">連結</dfn>します。
    
    {* ../../docs_src/python_types/tutorial001_py310.py hl[2] *}
    
    ### 編集 { #edit-it }
    
    これはとても簡単なプログラムです。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/advanced/behind-a-proxy.md

    }
    ```
    
    ### 在 FastAPI 應用中設定 `root_path` { #setting-the-root-path-in-the-fastapi-app }
    
    或者,如果你無法提供像 `--root-path` 這樣的命令列選項(或等效方式),你可以在建立 FastAPI 應用時設定 `root_path` 參數:
    
    {* ../../docs_src/behind_a_proxy/tutorial002_py310.py hl[3] *}
    
    把 `root_path` 傳給 `FastAPI` 等同於在 Uvicorn 或 Hypercorn 上使用命令列選項 `--root-path`。
    
    ### 關於 `root_path` { #about-root-path }
    
    請記住,伺服器(Uvicorn)除了把 `root_path` 傳給應用之外,不會拿它做其他用途。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 15.3K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/behind-a-proxy.md

    }
    ```
    
    ### 在 FastAPI 应用中设置 `root_path` { #setting-the-root-path-in-the-fastapi-app }
    
    或者,如果你无法提供类似 `--root-path` 的命令行选项,你可以在创建 FastAPI 应用时设置参数 `root_path`:
    
    {* ../../docs_src/behind_a_proxy/tutorial002_py310.py hl[3] *}
    
    把 `root_path` 传给 `FastAPI` 等同于把命令行选项 `--root-path` 传给 Uvicorn 或 Hypercorn。
    
    ### 关于 `root_path` { #about-root-path }
    
    请注意,服务器(Uvicorn)不会用这个 `root_path` 做别的事情,只会把它传给应用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  8. docs/ja/docs/advanced/behind-a-proxy.md

    }
    ```
    
    ### FastAPI アプリでの `root_path` 設定 { #setting-the-root-path-in-the-fastapi-app }
    
    あるいは、`--root-path` のようなコマンドラインオプションを渡せない場合は、FastAPI アプリ作成時にパラメータ `root_path` を設定できます:
    
    {* ../../docs_src/behind_a_proxy/tutorial002_py310.py hl[3] *}
    
    `FastAPI` に `root_path` を渡すのは、Uvicorn や Hypercorn にコマンドラインオプション `--root-path` を渡すのと同等です。
    
    ### `root_path` について { #about-root-path }
    
    サーバー(Uvicorn)は、その `root_path` をアプリに渡す以外の用途では使用しない点に注意してください。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 18.9K bytes
    - Click Count (0)
  9. docs/ru/docs/advanced/stream-data.md

    {* ../../docs_src/stream_data/tutorial002_py310.py ln[6,19:20] hl[20] *}
    
    Затем вы можете использовать этот новый класс в `response_class=PNGStreamingResponse` в своей *функции-обработчике пути*:
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *}
    
    ### Симулировать файл { #simulate-a-file }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  10. docs/de/docs/advanced/stream-data.md

    {* ../../docs_src/stream_data/tutorial002_py310.py ln[6,19:20] hl[20] *}
    
    Dann können Sie diese neue Klasse mit `response_class=PNGStreamingResponse` in Ihrer Pfadoperation-Funktion verwenden:
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *}
    
    ### Eine Datei simulieren { #simulate-a-file }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:48:21 GMT 2026
    - 6K bytes
    - Click Count (0)
Back to Top