Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,127 for docs_src (0.07 seconds)

  1. scripts/tests/test_translation_fixer/test_code_includes/data/translated_doc_number_gt.md

    # Header
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    Some text
    
    {* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
    
    Some more text
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    And even more text
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 370 bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/server-sent-events.md

    从 `fastapi.sse` 导入 `EventSourceResponse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    每个被 yield 的项会被编码为 JSON,并放入 SSE 事件的 `data:` 字段发送。
    
    如果你将返回类型声明为 `AsyncIterable[Item]`,FastAPI 将使用它通过 Pydantic对数据进行**校验**、**文档化**和**序列化**。
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *}
    
    /// tip | 提示
    
    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)
  3. pyproject.toml

    "docs_src/security/tutorial004_an_py39.py" = ["B904"]
    "docs_src/security/tutorial004_py310.py" = ["B904"]
    "docs_src/security/tutorial004_py39.py" = ["B904"]
    "docs_src/security/tutorial005_an_py310.py" = ["B904"]
    "docs_src/security/tutorial005_an_py39.py" = ["B904"]
    "docs_src/security/tutorial005_py310.py" = ["B904"]
    "docs_src/security/tutorial005_py39.py" = ["B904"]
    "docs_src/json_base64_bytes/tutorial001_py310.py" = ["UP012"]
    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)
  4. docs/ko/docs/tutorial/query-params-str-validations.md

    ## 검증 더 추가하기 { #add-more-validations }
    
    `min_length` 매개변수도 추가할 수 있습니다:
    
    {* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *}
    
    ## 정규식 추가 { #add-regular-expressions }
    
    매개변수와 일치해야 하는 <dfn title="정규 표현식(regex 또는 regexp)은 문자열에 대한 검색 패턴을 정의하는 문자 시퀀스입니다.">정규 표현식</dfn> `pattern`을 정의할 수 있습니다:
    
    {* ../../docs_src/query_params_str_validations/tutorial004_an_py310.py hl[11] *}
    
    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)
  5. docs/zh-hant/docs/advanced/custom-response.md

    簡而言之,若你想要最佳效能,請使用[回應模型](../tutorial/response-model.md),並且不要在「路徑操作裝飾器」中宣告 `response_class`。
    
    {* ../../docs_src/response_model/tutorial001_01_py310.py ln[15:17] hl[16] *}
    
    ## HTML 回應 { #html-response }
    
    要直接從 **FastAPI** 回傳 HTML,使用 `HTMLResponse`。
    
    - 匯入 `HTMLResponse`。
    - 在「路徑操作裝飾器」中,將 `HTMLResponse` 傳給 `response_class` 參數。
    
    {* ../../docs_src/custom_response/tutorial002_py310.py hl[2,7] *}
    
    /// info
    
    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)
  6. docs/ko/docs/tutorial/path-params-numeric-validations.md

    **FastAPI**에서는 중요하지 않습니다. 이름, 타입 그리고 기본값 선언(`Query`, `Path` 등)로 매개변수를 감지하며 순서는 신경 쓰지 않습니다.
    
    따라서 함수를 다음과 같이 선언할 수 있습니다:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_py310.py hl[7] *}
    
    하지만 `Annotated`를 사용하면 이 문제가 없다는 점을 기억하세요. `Query()`나 `Path()`에 함수 매개변수 기본값을 사용하지 않기 때문에, 순서는 중요하지 않습니다.
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_an_py310.py *}
    
    ## 필요한 대로 매개변수 정렬하기, 트릭 { #order-the-parameters-as-you-need-tricks }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  7. scripts/tests/test_translation_fixer/test_code_includes/data/en_doc.md

    # Header
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    Some text
    
    {* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
    
    Some more text
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 314 bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/query-params-str-validations.md

    ## 添加更多校验 { #add-more-validations }
    
    你还可以添加 `min_length` 参数:
    
    {* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *}
    
    ## 添加正则表达式 { #add-regular-expressions }
    
    你可以定义一个参数必须匹配的 <dfn title="正则表达式(regex 或 regexp)是用于定义字符串搜索模式的字符序列。">正则表达式</dfn> `pattern`:
    
    {* ../../docs_src/query_params_str_validations/tutorial004_an_py310.py hl[11] *}
    
    这个特定的正则表达式通过以下规则检查接收到的参数值:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/tutorial/sql-databases.md

    {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[21:22] hl[21:22] *}
    
    ### 建立 Session 依賴 { #create-a-session-dependency }
    
    「`Session`」會在記憶體中保存物件並追蹤資料需要的任何變更,然後透過「`engine`」與資料庫溝通。
    
    我們會用 `yield` 建立一個 FastAPI 的「依賴」,為每個請求提供一個新的 `Session`。這可確保每個請求只使用單一的 session。🤓
    
    接著我們建立一個 `Annotated` 的依賴 `SessionDep`,讓後續使用這個依賴的程式碼更簡潔。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/server-sent-events.md

    Import `EventSourceResponse` from `fastapi.sse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Each yielded item is encoded as JSON and sent in the `data:` field of an SSE event.
    
    If you declare the return type as `AsyncIterable[Item]`, FastAPI will use it to **validate**, **document**, and **serialize** the data using Pydantic.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *}
    
    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)
Back to Top