Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for negate (0.16 sec)

  1. docs/pt/docs/advanced/templates.md

    Você também pode usar `url_for()` dentro do template e usá-lo, por examplo, com o `StaticFiles` que você montou com o `name="static"`.
    
    ```jinja hl_lines="4"
    {!../../../docs_src/templates/templates/item.html!}
    ```
    
    Neste exemplo, ele seria vinculado a um arquivo CSS em `static/styles.css` com:
    
    ```CSS hl_lines="4"
    {!../../../docs_src/templates/static/styles.css!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 28 04:05:17 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

    * ⬆ Bump pypa/gh-action-pypi-publish from 1.5.2 to 1.6.4. PR [#5750](https://github.com/tiangolo/fastapi/pull/5750) by [@dependabot[bot]](https://github.com/apps/dependabot).
    * 👷 Add GitHub Action gate/check. PR [#5492](https://github.com/tiangolo/fastapi/pull/5492) by [@webknjaz](https://github.com/webknjaz).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  3. docs/pt/docs/tutorial/handling-errors.md

    O benefício de lançar uma exceção em vez de retornar um valor ficará mais evidente na seção sobre Dependências e Segurança.
    
    Neste exemplo, quando o cliente pede, na requisição, por um item cujo ID não existe, a exceção com o status code `404` é lançada:
    
    ```Python hl_lines="11"
    {!../../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/path-params.md

    ```Python hl_lines="6"
    {!../../../docs_src/path_params/tutorial004.py!}
    ```
    
    !!! tip "Dica"
    	Você poderia precisar que o parâmetro contivesse `/home/johndoe/myfile.txt`, com uma barra no inicio (`/`).
    
    	Neste caso, a URL deveria ser: `/files//home/johndoe/myfile.txt`, com barra dupla (`//`) entre `files` e `home`.
    
    
    ## Recapitulando
    
    Com o **FastAPI**, usando as declarações de tipo do Python, você obtém:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/first-steps.md

    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Esta é uma função Python.
    
    Ela será chamada pelo **FastAPI** sempre que receber uma requisição para a URL "`/ `" usando uma operação `GET`.
    
    Neste caso, é uma função `assíncrona`.
    
    ---
    
    Você também pode defini-la como uma função normal em vez de `async def`:
    
    ```Python hl_lines="7"
    {!../../../docs_src/first_steps/tutorial003.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  6. docs/en/docs/async.md

    ### Concurrency and Burgers
    
    This idea of **asynchronous** code described above is also sometimes called **"concurrency"**. It is different from **"parallelism"**.
    
    **Concurrency** and **parallelism** both relate to "different things happening more or less at the same time".
    
    But the details between *concurrency* and *parallelism* are quite different.
    
    To see the difference, imagine the following story about burgers:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/body-multiple-params.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="19-21"
        {!> ../../../docs_src/body_multiple_params/tutorial001.py!}
        ```
    
    !!! note "Nota"
        Repare que, neste caso, o `item` que seria capturado a partir do corpo é opcional. Visto que ele possui `None` como valor padrão.
    
    ## Múltiplos parâmetros de corpo
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/encoder.md

        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    Neste exemplo, ele converteria o modelo Pydantic em um `dict`, e o `datetime` em um `str`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/sql-databases.md

    ## CRUD utils
    
    Now let's see the file `sql_app/crud.py`.
    
    In this file we will have reusable functions to interact with the data in the database.
    
    **CRUD** comes from: **C**reate, **R**ead, **U**pdate, and **D**elete.
    
    ...although in this example we are only creating and reading.
    
    ### Read data
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/body-nested-models.md

    Isso seria útil se você deseja receber chaves que ainda não conhece.
    
    ---
    
    Outro caso útil é quando você deseja ter chaves de outro tipo, por exemplo, `int`.
    
    É isso que vamos ver aqui.
    
    Neste caso, você aceitaria qualquer `dict`, desde que tenha chaves` int` com valores `float`:
    
    ```Python hl_lines="9"
    {!../../../docs_src/body_nested_models/tutorial009.py!}
    ```
    
    !!! tip "Dica"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top