Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 100 for part2 (0.12 sec)

  1. docs/pt/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    ### Passo 3: crie uma *rota*
    
    #### Rota
    
    "Rota" aqui se refere à última parte da URL, começando do primeiro `/`.
    
    Então, em uma URL como:
    
    ```
    https://example.com/items/foo
    ```
    
    ...a rota seria:
    
    ```
    /items/foo
    ```
    
    !!! info "Informação"
    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)
  2. docs/en/docs/tutorial/dependencies/index.md

        But because **FastAPI** is based on the Python standards, including `Annotated`, you can use this trick in your code. 😎
    
    The dependencies will keep working as expected, and the **best part** is that the **type information will be preserved**, which means that your editor will be able to keep providing you with **autocompletion**, **inline errors**, etc. The same for other tools like `mypy`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. docs/pt/docs/index.md

    * <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> para as partes web.
    * <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> para a parte de dados.
    
    ## Instalação
    
    <div class="termy">
    
    ```console
    $ pip install fastapi
    
    ---> 100%
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/security/oauth2-scopes.md

    That's what would happen to a third party application that tried to access one of these *path operations* with a token provided by a user, depending on how many permissions the user gave the application.
    
    ## About third party integrations
    
    In this example we are using the OAuth2 "password" flow.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/sql-databases-peewee.md

    ```Python
    some_var.set("new value")
    ```
    
    To get a value anywhere inside of the context (e.g. in any part handling the current request) use:
    
    ```Python
    some_var.get()
    ```
    
    ### Set context variables in the `async` dependency `reset_db_state()`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  6. docs/en/docs/async.md

    ## In a hurry?
    
    <abbr title="too long; didn't read"><strong>TL;DR:</strong></abbr>
    
    If you are using third party libraries that tell you to call them with `await`, like:
    
    ```Python
    results = await some_library()
    ```
    
    Then, declare your *path operation functions* with `async def` like:
    
    ```Python hl_lines="2"
    @app.get('/')
    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/es/docs/tutorial/index.md

    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ...eso también incluye `uvicorn` que puedes usar como el servidor que ejecuta tu código.
    
    !!! note "Nota"
        También puedes instalarlo parte por parte.
    
        Esto es lo que probablemente harías una vez que desees implementar tu aplicación en producción:
    
        ```
        pip install fastapi
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/simple-oauth2.md

    # Simple OAuth2 with Password and Bearer
    
    Now let's build from the previous chapter and add the missing parts to have a complete security flow.
    
    ## Get the `username` and `password`
    
    We are going to use **FastAPI** security utilities to get the `username` and `password`.
    
    OAuth2 specifies that when using the "password flow" (that we are using) the client/user must send a `username` and `password` fields as form data.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  9. docs/pt/docs/advanced/index.md

    !!! tip "Dica"
        As próximas seções **não são necessáriamente "avançadas"**
    
        E é possível que para seu caso de uso, a solução esteja em uma delas.
    
    ## Leia o Tutorial primeiro
    
    Você ainda pode usar a maior parte dos recursos no **FastAPI** com o conhecimento do [Tutorial - Guia de Usuário](../tutorial/index.md){.internal-link target=_blank}.
    
    E as próximas seções assumem que você já leu ele, e que você conhece suas ideias principais.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/extending-openapi.md

    In this section you will see how.
    
    ## The normal process
    
    The normal (default) process, is as follows.
    
    A `FastAPI` application (instance) has an `.openapi()` method that is expected to return the OpenAPI schema.
    
    As part of the application object creation, a *path operation* for `/openapi.json` (or for whatever you set your `openapi_url`) is registered.
    
    It just returns a JSON response with the result of the application's `.openapi()` method.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 3.2K bytes
    - Viewed (0)
Back to top