Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 1,039 for Python (0.07 seconds)

  1. ci/devinfra/docker/windows/Dockerfile

    # Install pacman packages.
    RUN C:\tools\msys64\usr\bin\bash.exe -lc \
      'pacman --noconfirm -Syy curl git patch vim unzip zip'
    
    # Install Python as a general utility/tool.
    ENV PYTHON_VERSION 3.12.3
    
    RUN $url = ('https://www.python.org/ftp/python/{0}/python-{0}-amd64.exe' -f $env:PYTHON_VERSION); \
    	Write-Host ('Downloading {0} ...' -f $url); \
    	[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Jan 17 16:35:57 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/async.md

    這一點,再加上 Python 是 **資料科學**、機器學習,尤其是深度學習的主要語言,讓 **FastAPI** 成為資料科學/機器學習 Web API 和應用程式(以及許多其他應用程式)的絕佳選擇。
    
    想了解如何在生產環境中實現這種平行性,請參見 [部屬](deployment/index.md)。
    
    ## `async` 和 `await` { #async-and-await }
    
    現代 Python 版本提供一種非常直觀的方式定義非同步程式碼。這使得它看起來就像正常的「順序」程式碼,並在適當的時機替你「等待」。
    
    當某個操作需要等待才能回傳結果,並且支援這些新的 Python 特性時,你可以像這樣編寫程式碼:
    
    ```Python
    burgers = await get_burgers(2)
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 21.7K bytes
    - Click Count (0)
  3. docs/zh/docs/async.md

    并且,你也可以利用并行和多进程(让多个进程并行运行)的优点来处理与机器学习系统中类似的 **CPU 密集型** 工作。
    
    这一点,再加上 Python 是**数据科学**、机器学习(尤其是深度学习)的主要语言这一简单事实,使得 **FastAPI** 与数据科学/机器学习 Web API 和应用程序(以及其他许多应用程序)非常匹配。
    
    了解如何在生产环境中实现这种并行性,可查看此文 [部署](deployment/index.md)。
    
    ## `async` 和 `await` { #async-and-await }
    
    现代版本的 Python 有一种非常直观的方式来定义异步代码。这使它看起来就像正常的"顺序"代码,并在适当的时候"等待"。
    
    当有一个操作需要等待才能给出结果,且支持这个新的 Python 特性时,你可以编写如下代码:
    
    ```Python
    burgers = await get_burgers(2)
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  4. scripts/tests/test_translation_fixer/test_code_blocks/data/translated_doc_wrong_lang_code_2.md

    # Code blocks { #code-blocks }
    
    Some text
    
    ```python
    # This is a sample Python code block
    def hello_world():
        # Comment with indentation
        print("Hello, world!")  # Print greeting
    ```
    
    Some more text
    
    The following block has wrong language code (should be TOML):
    
    ```
    # This is a sample TOML code block
    title = "TOML Example"  # Title of the document
    ```
    
    And more text
    
    ```console
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 942 bytes
    - Click Count (0)
  5. .github/ISSUE_TEMPLATE/tflite-other.md

    -   type: dropdown id: source attributes: label: Source description: Tensorflow
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Dec 29 22:28:29 GMT 2022
    - 3.4K bytes
    - Click Count (0)
  6. docs/select/README.md

    ## Example using Python API
    
    ### 1. Prerequisites
    
    - Install MinIO Server from [here](https://docs.min.io/community/minio-object-store/operations/deployments/baremetal-deploy-minio-on-redhat-linux.html#procedure).
    - Familiarity with AWS S3 API.
    - Familiarity with Python and installing dependencies.
    
    ### 2. Install boto3
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/request-forms-and-files.md

    /// info
    
    To receive uploaded files and/or form data, first install [`python-multipart`](https://github.com/Kludex/python-multipart).
    
    Make sure you create a [virtual environment](../virtual-environments.md), activate it, and then install it, for example:
    
    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    ## Import `File` and `Form` { #import-file-and-form }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  8. docs/en/docs/reference/dependencies.md

    ## `Depends()`
    
    Dependencies are handled mainly with the special function `Depends()` that takes a callable.
    
    Here is the reference for it and its parameters.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Depends
    ```
    
    ::: fastapi.Depends
    
    ## `Security()`
    
    For many scenarios, you can handle security (authorization, authentication, etc.) with dependencies, using `Depends()`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 671 bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/request-forms.md

    When you need to receive form fields instead of JSON, you can use `Form`.
    
    /// info
    
    To use forms, first install [`python-multipart`](https://github.com/Kludex/python-multipart).
    
    Make sure you create a [virtual environment](../virtual-environments.md), activate it, and then install it, for example:
    
    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    ## Import `Form` { #import-form }
    
    Import `Form` from `fastapi`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/path-params.md

    # 路徑參數 { #path-parameters }
    
    你可以用與 Python 格式化字串相同的語法來宣告路徑「參數」或「變數」:
    
    {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *}
    
    路徑參數 `item_id` 的值會作為引數 `item_id` 傳入你的函式。
    
    所以,如果你執行這個範例並前往 [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo),你會看到這樣的回應:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## 具型別的路徑參數 { #path-parameters-with-types }
    
    你可以在函式中使用標準的 Python 型別註記為路徑參數宣告型別:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
Back to Top