Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1601 - 1610 of 2,110 for py$ (0.01 seconds)

  1. docs/ko/docs/tutorial/handling-errors.md

    ## `HTTPException` 사용하기 { #use-httpexception }
    
    클라이언트에 오류가 포함된 HTTP 응답을 반환하려면 `HTTPException`을 사용합니다.
    
    ### `HTTPException` 가져오기 { #import-httpexception }
    
    {* ../../docs_src/handling_errors/tutorial001_py310.py hl[1] *}
    
    ### 코드에서 `HTTPException` 발생시키기 { #raise-an-httpexception-in-your-code }
    
    `HTTPException`은 API와 관련된 추가 데이터를 가진 일반적인 Python 예외입니다.
    
    Python 예외이므로 `return` 하는 것이 아니라 `raise` 합니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/request-files.md

    ///
    
    ## 导入 `File` { #import-file }
    
    从 `fastapi` 导入 `File` 和 `UploadFile`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[3] *}
    
    ## 定义 `File` 参数 { #define-file-parameters }
    
    像为 `Body` 或 `Form` 一样创建文件参数:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[9] *}
    
    /// info | 信息
    
    `File` 是直接继承自 `Form` 的类。
    
    但要注意,从 `fastapi` 导入的 `Query`、`Path`、`File` 等项,实际上是返回特定类的函数。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  3. docs/fr/docs/deployment/docker.md

    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    # (2)!
    CMD ["fastapi", "run", "main.py", "--port", "80"]
    ```
    
    1. Copier le fichier `main.py` directement dans le répertoire `/code` (sans répertoire `./app`).
    
    2. Utiliser `fastapi run` pour servir votre application dans le fichier unique `main.py`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 32.3K bytes
    - Click Count (0)
  4. .github/workflows/deploy-docs.yml

            if: failure()
            run: uv run ./scripts/deploy_docs_status.py
            env:
              GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
              COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
              RUN_ID: ${{ github.run_id }}
              STATE: "error"
          - name: Comment Deploy
            run: uv run ./scripts/deploy_docs_status.py
            env:
              GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Mar 03 00:12:02 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/environment-variables.md

    然後你可以呼叫這個 Python 程式:
    
    //// tab | Linux, macOS, Windows Bash
    
    <div class="termy">
    
    ```console
    // 這裡我們還沒有設定環境變數
    $ python main.py
    
    // 因為我們沒有設定環境變數,所以我們得到的是預設值
    
    Hello World from Python
    
    // 但是如果我們事先建立過一個環境變數
    $ export MY_NAME="Wade Wilson"
    
    // 然後再次呼叫程式
    $ python main.py
    
    // 現在就可以讀取到環境變數了
    
    Hello Wade Wilson from Python
    ```
    
    </div>
    
    ////
    
    //// tab | Windows PowerShell
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  6. docs/uk/docs/advanced/json-base64-bytes.md

    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:9,29:35] hl[9] *}
    
    Якщо ви перевірите `/docs`, там буде показано, що поле `data` очікує байти, закодовані в base64:
    
    <div class="screenshot">
    <img src="/img/tutorial/json-base64-bytes/image01.png">
    </div>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:25:54 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/background-tasks.md

    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[6:9] *}
    
    ## Den Hintergrundtask hinzufügen { #add-the-background-task }
    
    Übergeben Sie innerhalb Ihrer *Pfadoperation-Funktion* Ihre Taskfunktion mit der Methode `.add_task()` an das *Hintergrundtasks*-Objekt:
    
    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[14] *}
    
    `.add_task()` erhält als Argumente:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  8. docs/fr/docs/how-to/separate-openapi-schemas.md

    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### Modèle pour l'entrée { #model-for-input }
    
    Si vous utilisez ce modèle en entrée comme ici :
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *}
    
    ... alors, le champ `description` ne sera **pas requis**. Parce qu'il a une valeur par défaut de `None`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:12:41 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  9. docs/es/docs/advanced/advanced-dependencies.md

    Así es como se vería:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py *}
    
    El código de salida, el cierre automático de la `Session` en:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    ...se ejecutaría después de que la response termine de enviar los datos lentos:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  10. docs/de/docs/advanced/events.md

    Beginnen wir mit einem Beispiel und sehen es uns dann im Detail an.
    
    Wir erstellen eine asynchrone Funktion `lifespan()` mit `yield` wie folgt:
    
    {* ../../docs_src/events/tutorial003_py310.py hl[16,19] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 9.4K bytes
    - Click Count (0)
Back to Top