Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 152 for tutorial002_py310 (0.08 seconds)

  1. pyproject.toml

    "docs_src/custom_request_and_route/tutorial002_py310.py" = ["B904"]
    "docs_src/custom_request_and_route/tutorial002_py39.py" = ["B904"]
    "docs_src/custom_response/tutorial007_py310.py" = ["B007"]
    "docs_src/custom_response/tutorial007_py39.py" = ["B007"]
    "docs_src/dataclasses/tutorial003_py39.py" = ["I001"]
    "docs_src/dependencies/tutorial007_py310.py" = ["F821"]
    "docs_src/dependencies/tutorial007_py39.py" = ["F821"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  2. docs/en/docs/advanced/custom-response.md

    {* ../../docs_src/response_directly/tutorial002_py310.py hl[1,18] *}
    
    ### `HTMLResponse` { #htmlresponse }
    
    Takes some text or bytes and returns an HTML response, as you read above.
    
    ### `PlainTextResponse` { #plaintextresponse }
    
    Takes some text or bytes and returns a plain text response.
    
    {* ../../docs_src/custom_response/tutorial005_py310.py hl[2,7,9] *}
    
    ### `JSONResponse` { #jsonresponse }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/response-model.md

    We can instead create an input model with the plaintext password and an output model without it:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Here, even though our *path operation function* is returning the same input user that contains the password:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...we declared the `response_model` to be our model `UserOut`, that doesn't include the password:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/advanced/custom-response.md

    {* ../../docs_src/response_directly/tutorial002_py310.py hl[1,18] *}
    
    ### `HTMLResponse` { #htmlresponse }
    
    接收文字或位元組並回傳 HTML 回應,如上所述。
    
    ### `PlainTextResponse` { #plaintextresponse }
    
    接收文字或位元組並回傳純文字回應。
    
    {* ../../docs_src/custom_response/tutorial005_py310.py hl[2,7,9] *}
    
    ### `JSONResponse` { #jsonresponse }
    
    接收資料並回傳 `application/json` 編碼的回應。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  5. docs/ko/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005_py310.py hl[1,6:9] *}
    
    /// tip | 팁
    
    혹시 궁금하다면, "AlexNet", "ResNet", 그리고 "LeNet"은 그저 머신 러닝 <dfn title="기술적으로는 딥 러닝 모델 아키텍처">모델</dfn>들의 이름입니다.
    
    ///
    
    ### *경로 매개변수* 선언 { #declare-a-path-parameter }
    
    생성한 열거형 클래스(`ModelName`)를 사용하는 타입 어노테이션으로 *경로 매개변수를* 만듭니다:
    
    {* ../../docs_src/path_params/tutorial005_py310.py hl[16] *}
    
    ### 문서 확인 { #check-the-docs }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  6. docs/en/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Because the editor knows the types of the variables, you don't only get completion, you also get error checks:
    
    <img src="/img/python-types/image04.png">
    
    Now you know that you have to fix it, convert `age` to a string with `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    ## Declaring types { #declaring-types }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  7. docs/ja/docs/advanced/additional-responses.md

    同じ `responses` パラメータを使って、同一のメインレスポンスに別のメディアタイプを追加できます。
    
    例えば、`image/png` の追加メディアタイプを加え、あなたの *path operation* が JSON オブジェクト(メディアタイプ `application/json`)または PNG 画像を返せることを宣言できます:
    
    {* ../../docs_src/additional_responses/tutorial002_py310.py hl[17:22,26] *}
    
    /// note | 備考
    
    画像は `FileResponse` を使って直接返す必要がある点に注意してください。
    
    ///
    
    /// info | 情報
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 10K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/tutorial/response-model.md

    我們可以改為建立一個包含明文密碼的輸入模型,以及一個不含密碼的輸出模型:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    在這裡,雖然「路徑操作函式」回傳的是同一個包含密碼的輸入使用者:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...我們把 `response_model` 宣告為不包含密碼的 `UserOut` 模型:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    因此,FastAPI 會負責(透過 Pydantic)過濾掉輸出模型中未宣告的所有資料。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/python-types.md

    ///
    
    ## 動機 { #motivation }
    
    先從一個簡單的例子開始:
    
    {* ../../docs_src/python_types/tutorial001_py310.py *}
    
    執行這個程式會輸出:
    
    ```
    John Doe
    ```
    
    這個函式會做以下事情:
    
    * 接收 `first_name` 與 `last_name`。
    * 用 `title()` 把每個字的第一個字母轉成大寫。
    * 用一個空白把它們<dfn title="把它們合在一起,成為一個。將其中一個的內容接在另一個後面。">串接</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 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  10. docs/ko/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 14:06:26 GMT 2026
    - 11K bytes
    - Click Count (0)
Back to Top