Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 1,039 for python3 (0.05 seconds)

  1. 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)
  2. docs/de/docs/tutorial/testing.md

    Es basiert auf [HTTPX](https://www.python-httpx.org), welches wiederum auf der Grundlage von Requests konzipiert wurde, es ist also sehr vertraut und intuitiv.
    
    Damit können Sie [pytest](https://docs.pytest.org/) direkt mit **FastAPI** verwenden.
    
    ## `TestClient` verwenden { #using-testclient }
    
    /// info | Info
    
    Um `TestClient` zu verwenden, installieren Sie zunächst [`httpx`](https://www.python-httpx.org).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/testing.md

    多虧了 [Starlette](https://www.starlette.dev/testclient/),測試 **FastAPI** 應用既簡單又好用。
    
    它是基於 [HTTPX](https://www.python-httpx.org) 打造,而 HTTPX 的設計又參考了 Requests,所以用起來非常熟悉、直覺。
    
    借助它,你可以直接用 [pytest](https://docs.pytest.org/) 來測試 **FastAPI**。
    
    ## 使用 `TestClient` { #using-testclient }
    
    /// info
    
    要使用 `TestClient`,請先安裝 [`httpx`](https://www.python-httpx.org)。
    
    請先建立並啟用一個[虛擬環境](../virtual-environments.md),然後安裝,例如:
    
    ```console
    $ pip install httpx
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/testing.md

    感谢 [Starlette](https://www.starlette.dev/testclient/),测试**FastAPI** 应用轻松又愉快。
    
    它基于 [HTTPX](https://www.python-httpx.org),而HTTPX又是基于Requests设计的,所以很相似且易懂。
    
    有了它,你可以直接与**FastAPI**一起使用 [pytest](https://docs.pytest.org/)。
    
    ## 使用 `TestClient` { #using-testclient }
    
    /// info | 信息
    
    要使用 `TestClient`,先要安装 [`httpx`](https://www.python-httpx.org)。
    
    确保你创建并激活一个[虚拟环境](../virtual-environments.md),然后再安装,例如:
    
    ```console
    $ pip install httpx
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/request-form-models.md

    /// info | Información
    
    Para usar formularios, primero instala [`python-multipart`](https://github.com/Kludex/python-multipart).
    
    Asegúrate de crear un [entorno virtual](../virtual-environments.md), activarlo, y luego instalarlo, por ejemplo:
    
    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    /// note | Nota
    
    Esto es compatible desde la versión `0.113.0` de FastAPI. 🤓
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/encoder.md

    它接收一个对象,比如Pydantic模型,并会返回一个JSON兼容的版本:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    在这个例子中,它将Pydantic模型转换为`dict`,并将`datetime`转换为`str`。
    
    调用它的结果后就可以使用Python标准编码中的[`json.dumps()`](https://docs.python.org/3/library/json.html#json.dumps)。
    
    这个操作不会返回一个包含JSON格式(作为字符串)数据的庞大的`str`。它将返回一个Python标准数据结构(例如`dict`),其值和子值都与JSON兼容。
    
    /// note | 注意
    
    `jsonable_encoder`实际上是**FastAPI**内部用来转换数据的。但是它在许多其他场景中也很有用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/dependencies/sub-dependencies.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.10+ nicht annotiert
    
    /// tip | Tipp
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="1"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 07:57:30 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  8. .github/workflows/pre-commit.yml

              ref: ${{ github.event.pull_request.head.sha }}
              fetch-depth: 0
          - name: Set up Python
            uses: actions/setup-python@v6
            with:
              python-version-file: ".python-version"
          - name: Setup uv
            uses: astral-sh/setup-uv@v7
            with:
              cache-dependency-glob: |
                pyproject.toml
                uv.lock
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:02:57 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  9. docs/ru/docs/history-design-future.md

    Согласно последнему [опросу Python-разработчиков](https://www.jetbrains.com/research/python-developers-survey-2018/#development-tools), который охватывает около 80% пользователей.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/body-nested-models.md

    Você pode definir um atributo como um subtipo. Por exemplo, uma `list` do Python:
    
    {* ../../docs_src/body_nested_models/tutorial001_py310.py hl[12] *}
    
    Isso fará com que tags seja uma lista de itens mesmo sem declarar o tipo dos elementos desta lista.
    
    ## Campos do tipo Lista com um parâmetro de tipo { #list-fields-with-type-parameter }
    
    Mas o Python tem uma maneira específica de declarar listas com tipos internos ou "parâmetros de tipo":
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.3K bytes
    - Click Count (0)
Back to Top