Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 707 for Python (0.04 sec)

  1. docs/ru/docs/tutorial/testing.md

    Благодаря <a href="https://www.starlette.dev/testclient/" class="external-link" target="_blank">Starlette</a>, тестировать приложения **FastAPI** легко и приятно.
    
    Тестирование основано на библиотеке <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, которая в свою очередь основана на библиотеке Requests, так что все действия знакомы и интуитивно понятны.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10K bytes
    - Viewed (0)
  2. docs/fr/docs/alternatives.md

    > Requests est l'un des packages Python les plus téléchargés de tous les temps
    
    La façon dont vous l'utilisez est très simple. Par exemple, pour faire une requête `GET`, vous devez écrire :
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    En contrepartie l'API _des opérations de chemin_ de FastAPI pourrait ressembler à ceci :
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/request-files.md

    /// info | Información
    
    Para recibir archivos subidos, primero instala <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
    Asegúrate de crear un [entorno virtual](../virtual-environments.md){.internal-link target=_blank}, activarlo y luego instalarlo, por ejemplo:
    
    ```console
    $ pip install python-multipart
    ```
    
    Esto es porque los archivos subidos se envían como "form data".
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/request-files.md

    # 请求文件
    
    `File` 用于定义客户端的上传文件。
    
    /// info | 说明
    
    因为上传文件以「表单数据」形式发送。
    
    所以接收上传文件,要预先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。
    
    例如: `pip install python-multipart`。
    
    ///
    
    ## 导入 `File`
    
    从 `fastapi` 导入 `File` 和 `UploadFile`:
    
    {* ../../docs_src/request_files/tutorial001.py hl[1] *}
    
    ## 定义 `File` 参数
    
    创建文件(`File`)参数的方式与 `Body` 和 `Form` 一样:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. docs/pt/docs/alternatives.md

    É por isso que, como dito no site oficial:
    
    > Requests é um dos pacotes Python mais baixados de todos os tempos
    
    O jeito de usar é muito simples. Por exemplo, para fazer uma requisição `GET`, você escreveria:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    A contra-parte na aplicação FastAPI, a operação de rota, poderia ficar assim:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  6. docs/pt/docs/index.md

    Você faz isso com os tipos padrão do Python moderno.
    
    Você não terá que aprender uma nova sintaxe, métodos ou classes de uma biblioteca específica etc.
    
    Apenas **Python** padrão.
    
    Por exemplo, para um `int`:
    
    ```Python
    item_id: int
    ```
    
    ou para um modelo mais complexo, `Item`:
    
    ```Python
    item: Item
    ```
    
    ...e com essa única declaração você tem:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  7. .github/workflows/label-approved.yml

        steps:
        - name: Dump GitHub context
          env:
            GITHUB_CONTEXT: ${{ toJson(github) }}
          run: echo "$GITHUB_CONTEXT"
        - uses: actions/checkout@v6
        - name: Set up Python
          uses: actions/setup-python@v6
          with:
            python-version: "3.11"
        - name: Setup uv
          uses: astral-sh/setup-uv@v7
          with:
            version: "0.4.15"
            enable-cache: true
            cache-dependency-glob: |
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Nov 21 13:03:21 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  8. .github/workflows/topic-repos.yml

          - name: Dump GitHub context
            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
            run: echo "$GITHUB_CONTEXT"
          - uses: actions/checkout@v6
          - name: Set up Python
            uses: actions/setup-python@v6
            with:
              python-version: "3.11"
          - name: Setup uv
            uses: astral-sh/setup-uv@v7
            with:
              version: "0.4.15"
              enable-cache: true
              cache-dependency-glob: |
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Nov 21 13:03:21 UTC 2025
    - 1021 bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    ## 上下文管理器
    
    ### 什么是"上下文管理器"
    
    "上下文管理器"是你可以在 `with` 语句中使用的任何Python对象。
    
    例如,<a href="https://docs.python.org/zh-cn/3/tutorial/inputoutput.html#reading-and-writing-files" class="external-link" target="_blank">你可以使用`with`读取文件</a>:
    
    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  10. docs/ko/docs/index.md

    요약하면, 여러분은 매개변수의 타입, 본문 등을 함수 매개변수로서 **한번에** 선언했습니다.
    
    여러분은 현대 표준 파이썬 타입으로 이를 행했습니다.
    
    새로운 문법, 특정 라이브러리의 메소드나 클래스 등을 배울 필요가 없습니다.
    
    그저 표준 **Python** 입니다.
    
    예를 들어, `int`에 대해선:
    
    ```Python
    item_id: int
    ```
    
    또는 좀 더 복잡한 `Item` 모델에 대해선:
    
    ```Python
    item: Item
    ```
    
    ...그리고 단 하나의 선언으로 여러분이 얻는 것은:
    
    * 다음을 포함한 편집기 지원:
        * 자동완성.
        * 타입 검사.
    * 데이터 검증:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top