Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 873 for Python (0.09 sec)

  1. docs/en/mkdocs.yml

      - alternatives.md
      - history-design-future.md
      - benchmarks.md
      - management.md
    - release-notes.md
    
    markdown_extensions:
      # Python Markdown
      abbr:
      attr_list:
      footnotes:
      md_in_html:
      tables:
      toc:
        permalink: true
    
      # Python Markdown Extensions
      pymdownx.betterem:
      pymdownx.caret:
      pymdownx.highlight:
        line_spans: __span
      pymdownx.inlinehilite:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 20:28:02 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/body-updates.md

    `jsonable_encoder`を用いて、入力データをJSON形式で保存できるデータに変換することができます(例:NoSQLデータベース)。例えば、`datetime`を`str`に変換します。
    
    ```Python hl_lines="30 31 32 33 34 35"
    {!../../docs_src/body_updates/tutorial001.py!}
    ```
    
    既存のデータを置き換えるべきデータを受け取るために`PUT`は使用されます。
    
    ### 置換についての注意
    
    つまり、`PUT`を使用して以下のボディで項目`bar`を更新したい場合は:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/security/get-current-user.md

    ```Python hl_lines="25"
    {!../../docs_src/security/tutorial002.py!}
    ```
    
    ## 获取用户
    
    `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型:
    
    ```Python hl_lines="19-22  26-27"
    {!../../docs_src/security/tutorial002.py!}
    ```
    
    ## 注入当前用户
    
    在*路径操作* 的 `Depends` 中使用 `get_current_user`:
    
    ```Python hl_lines="31"
    {!../../docs_src/security/tutorial002.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/security/oauth2-scopes.md

    ```Python hl_lines="2  4  8  12  46  64  105  107-115  121-124  128-134  139  155"
    {!../../docs_src/security/tutorial005.py!}
    ```
    
    🔜 ➡️ 📄 👈 🔀 🔁 🔁.
    
    ## Oauth2️⃣ 💂‍♂ ⚖
    
    🥇 🔀 👈 🔜 👥 📣 Oauth2️⃣ 💂‍♂ ⚖ ⏮️ 2️⃣ 💪 ↔, `me` & `items`.
    
    `scopes` 🔢 📨 `dict` ⏮️ 🔠 ↔ 🔑 & 📛 💲:
    
    ```Python hl_lines="62-65"
    {!../../docs_src/security/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. docs/select/README.md

    ## Example using Python API
    
    ### 1. Prerequisites
    
    - Install MinIO Server from [here](https://min.io/docs/minio/linux/index.html#procedure).
    - Familiarity with AWS S3 API.
    - Familiarity with Python and installing dependencies.
    
    ### 2. Install boto3
    
    Install `aws-sdk-python` from AWS SDK for Python official docs [here](https://aws.amazon.com/sdk-for-python/)
    
    ### 3. Example
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/request-forms.md

    要使用表单,需预先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。
    
    例如,`pip install python-multipart`。
    
    ///
    
    ## 导入 `Form`
    
    从 `fastapi` 导入 `Form`:
    
    ```Python hl_lines="1"
    {!../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ## 定义 `Form` 参数
    
    创建表单(`Form`)参数的方式与 `Body` 和 `Query` 一样:
    
    ```Python hl_lines="7"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. configure

    #!/usr/bin/env bash
    
    set -e
    set -o pipefail
    
    if [ -z "$PYTHON_BIN_PATH" ]; then
      PYTHON_BIN_PATH=$(which python3 || which python || true)
    fi
    
    # Set all env variables
    CONFIGURE_DIR=$(dirname "$0")
    "$PYTHON_BIN_PATH" "${CONFIGURE_DIR}/configure.py" "$@"
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sun Apr 12 14:04:24 UTC 2020
    - 285 bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ///
    
    ## 依存関係のエラーと戻り値
    
    通常使用している依存関係の*関数*と同じものを使用することができます。
    
    ### 依存関係の要件
    
    これらはリクエストの要件(ヘッダのようなもの)やその他のサブ依存関係を宣言することができます:
    
    ```Python hl_lines="6 11"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### 例外の発生
    
    これらの依存関係は通常の依存関係と同じように、例外を`raise`発生させることができます:
    
    ```Python hl_lines="8 13"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### 戻り値
    
    そして、値を返すことも返さないこともできますが、値は使われません。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. docs/zh/docs/advanced/dataclasses.md

    # 使用数据类
    
    FastAPI 基于 **Pydantic** 构建,前文已经介绍过如何使用 Pydantic 模型声明请求与响应。
    
    但 FastAPI 还可以使用数据类(<a href="https://docs.python.org/3/library/dataclasses.html" class="external-link" target="_blank">`dataclasses`</a>):
    
    ```Python hl_lines="1  7-12  19-20"
    {!../../docs_src/dataclasses/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. docs/em/docs/advanced/response-headers.md

    # 📨 🎚
    
    ## ⚙️ `Response` 🔢
    
    👆 💪 📣 🔢 🆎 `Response` 👆 *➡ 🛠️ 🔢* (👆 💪 🍪).
    
    &amp; ⤴️ 👆 💪 ⚒ 🎚 👈 *🔀* 📨 🎚.
    
    ```Python hl_lines="1  7-8"
    {!../../docs_src/response_headers/tutorial002.py!}
    ```
    
    &amp; ⤴️ 👆 💪 📨 🙆 🎚 👆 💪, 👆 🛎 🔜 ( `dict`, 💽 🏷, ♒️).
    
    &amp; 🚥 👆 📣 `response_model`, ⚫️ 🔜 ⚙️ ⛽ &amp; 🗜 🎚 👆 📨.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top