Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 873 for Python3 (0.06 sec)

  1. docs/pt/docs/tutorial/body.md

    Primeiro, você precisa importar `BaseModel` do `pydantic`:
    
    ```Python hl_lines="4"
    {!../../docs_src/body/tutorial001.py!}
    ```
    
    ## Crie seu modelo de dados
    
    Então você declara seu modelo de dados como uma classe que herda `BaseModel`.
    
    Utilize os tipos Python padrão para todos os atributos:
    
    ```Python hl_lines="7-11"
    {!../../docs_src/body/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. .github/workflows/test-redistribute.yml

          - uses: actions/checkout@v4
          - name: Set up Python
            uses: actions/setup-python@v5
            with:
              python-version: "3.10"
          - name: Install build dependencies
            run: pip install build
          - name: Build source distribution
            env:
              TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }}
            run: python -m build --sdist
          - name: Decompress source distribution
            run: |
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 08 23:34:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/handling-errors.md

    ## `HTTPException`の使用
    
    HTTPレスポンスをエラーでクライアントに返すには、`HTTPException`を使用します。
    
    ### `HTTPException`のインポート
    
    ```Python hl_lines="1"
    {!../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    ### コード内での`HTTPException`の発生
    
    `HTTPException`は通常のPythonの例外であり、APIに関連するデータを追加したものです。
    
    Pythonの例外なので、`return`ではなく、`raise`です。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/body-updates.md

    把输入数据转换为以 JSON 格式存储的数据(比如,使用 NoSQL 数据库时),可以使用 `jsonable_encoder`。例如,把 `datetime` 转换为 `str`。
    
    ```Python hl_lines="30-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
    - 3.6K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/request-forms-and-files.md

    /// info | "Informação"
    
    Para receber arquivos carregados e/ou dados de formulário, primeiro instale <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
    Por exemplo: `pip install python-multipart`.
    
    ///
    
    ## Importe `File` e `Form`
    
    ```Python hl_lines="1"
    {!../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ## Defina parâmetros de `File` e `Form`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/response-model.md

    ## 出力モデルの追加
    
    代わりに、平文のパスワードを持つ入力モデルと、パスワードを持たない出力モデルを作成することができます:
    
    ```Python hl_lines="9 11 16"
    {!../../docs_src/response_model/tutorial003.py!}
    ```
    
    ここでは、*path operation関数*がパスワードを含む同じ入力ユーザーを返しているにもかかわらず:
    
    ```Python hl_lines="24"
    {!../../docs_src/response_model/tutorial003.py!}
    ```
    
    ...`response_model`を`UserOut`と宣言したことで、パスワードが含まれていません:
    
    ```Python hl_lines="22"
    {!../../docs_src/response_model/tutorial003.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. .github/DISCUSSION_TEMPLATE/questions.yml

            ```bash
            python -c "import pydantic; print(pydantic.version.VERSION)"
            ```
        validations:
          required: true
      - type: input
        id: python-version
        attributes:
          label: Python Version
          description: |
            What Python version are you using?
    
            You can find the Python version with:
    
            ```bash
            python --version
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 03 15:59:41 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  8. docs/em/docs/advanced/websockets.md

    👉, ↗️, 🚫 ⚖ &amp; 👆 🚫🔜 ⚙️ ⚫️ 🏭.
    
    🏭 👆 🔜 ✔️ 1️⃣ 🎛 🔛.
    
    ✋️ ⚫️ 🙅 🌌 🎯 🔛 💽-🚄 *️⃣ &amp; ✔️ 👷 🖼:
    
    ```Python hl_lines="2  6-38  41-43"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## ✍ `websocket`
    
    👆 **FastAPI** 🈸, ✍ `websocket`:
    
    ```Python hl_lines="1  46-47"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    /// note | "📡 ℹ"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. docs/em/docs/how-to/graphql.md

    * <a href="https://tartiflette.io/" class="external-link" target="_blank">🍟</a>
        * ⏮️ <a href="https://tartiflette.github.io/tartiflette-asgi/" class="external-link" target="_blank">🍟 🔫</a> 🚚 🔫 🛠️
    * <a href="https://graphene-python.org/" class="external-link" target="_blank">⚗</a>
        * ⏮️ <a href="https://github.com/ciscorn/starlette-graphene3" class="external-link" target="_blank">💃-Graphene3️⃣</a>
    
    ## 🕹 ⏮️ 🍓
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/devel.usertools/code_check_changed_files.bats

    @test "Check pylint for Python files" {
        echo "Python formatting is recommended. Here are the pylint errors:"
        echo "============================="
        grep -e "\.py$" $BATS_FILE_TMPDIR/changed_files > $BATS_TEST_TMPDIR/files || true
        if [[ ! -s $BATS_TEST_TMPDIR/files ]]; then return 0; fi
        xargs -a $BATS_TEST_TMPDIR/files -n1 -P $(nproc --all) \
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Sep 18 14:52:45 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top