Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 645 for Pythons (0.05 sec)

  1. docs/es/docs/tutorial/body.md

    Usa tipos estándar de Python para todos los atributos:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    Al igual que al declarar parámetros de query, cuando un atributo del modelo tiene un valor por defecto, no es obligatorio. De lo contrario, es obligatorio. Usa `None` para hacerlo opcional.
    
    Por ejemplo, el modelo anterior declara un “`object`” JSON (o `dict` en Python) como:
    
    ```JSON
    {
        "name": "Foo",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    «Контекстные менеджеры» — это любые объекты Python, которые можно использовать в операторе `with`.
    
    Например, <a href="https://docs.python.org/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: Wed Dec 17 20:41:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  3. docs/en/docs/reference/websockets.md

    You can import it directly form `fastapi`:
    
    ```python
    from fastapi import WebSocketDisconnect
    ```
    
    ::: fastapi.WebSocketDisconnect
    
    ## WebSockets - additional classes
    
    Additional classes for handling WebSockets.
    
    Provided directly by Starlette, but you can import it from `fastapi`:
    
    ```python
    from fastapi.websockets import WebSocketDisconnect, WebSocketState
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/security/http-basic-auth.md

    Y envían un request con un nombre de usuario `johndoe` y una contraseña `love123`.
    
    Entonces el código de Python en tu aplicación equivaldría a algo como:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    //// tab | Python 3.9+
    
    ```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.9+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="1"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/testing.md

    Gracias a <a href="https://www.starlette.dev/testclient/" class="external-link" target="_blank">Starlette</a>, escribir pruebas para aplicaciones de **FastAPI** es fácil y agradable.
    
    Está basado en <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, que a su vez está diseñado basado en Requests, por lo que es muy familiar e intuitivo.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  7. 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)
  8. docs/pt/docs/tutorial/testing.md

    # Testando { #testing }
    
    Graças ao <a href="https://www.starlette.dev/testclient/" class="external-link" target="_blank">Starlette</a>, testar aplicações **FastAPI** é fácil e agradável.
    
    Ele é baseado no <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, que por sua vez é projetado com base em Requests, por isso é muito familiar e intuitivo.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/request-form-models.md

    Чтобы использовать формы, сначала установите <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
    Убедитесь, что вы создали и активировали [виртуальное окружение](../virtual-environments.md){.internal-link target=_blank}, а затем установите пакет, например:
    
    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    /// note | Заметка
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. .github/workflows/test-redistribute.yml

          - uses: actions/checkout@v6
          - name: Set up Python
            uses: actions/setup-python@v6
            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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Nov 21 13:03:21 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top