Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for devel (0.23 sec)

  1. docs/pt/docs/tutorial/background-tasks.md

    ```
    
    `.add_task()` recebe como argumentos:
    
    - Uma função de tarefa a ser executada em segundo plano (`write_notification`).
    - Qualquer sequência de argumentos que deve ser passada para a função de tarefa na ordem (`email`).
    - Quaisquer argumentos nomeados que devem ser passados ​​para a função de tarefa (`mensagem = "alguma notificação"`).
    
    ## Injeção de dependência
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon May 09 23:44:32 GMT 2022
    - 5.3K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/sub-applications.md

    "Mounting" means adding a completely "independent" application in a specific path, that then takes care of handling everything under that path, with the _path operations_ declared in that sub-application.
    
    ### Top-level application
    
    First, create the main, top-level, **FastAPI** application, and its *path operations*:
    
    ```Python hl_lines="3  6-8"
    {!../../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### Sub-application
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  3. tests/test_response_model_data_filter_no_inheritance.py

        return [pet1, pet2]
    
    
    client = TestClient(app)
    
    
    def test_filter_top_level_model():
        response = client.post(
            "/users", json={"email": "******@****.***", "password": "secret"}
        )
        assert response.json() == {"email": "******@****.***"}
    
    
    def test_filter_second_level_model():
        response = client.get("/pets/1")
        assert response.json() == {
            "name": "Nibbler",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/https.md

    And that's what **HTTPS** is, it's just plain **HTTP** inside a **secure TLS connection** instead of a pure (unencrypted) TCP connection.
    
    !!! tip
        Notice that the encryption of the communication happens at the **TCP level**, not at the HTTP level.
    
    ### HTTPS Request
    
    Now that the client and server (specifically the browser and the TLS Termination Proxy) have an **encrypted TCP connection**, they can start the **HTTP communication**.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 12K bytes
    - Viewed (0)
  5. docs/pt/docs/deployment.md

        $ hypercorn main:app --bind 0.0.0.0:80
    
        Running on 0.0.0.0:8080 over http (CTRL + C to quit)
        ```
    
        </div>
    
    Você deve querer configurar mais algumas ferramentas para ter certeza que ele seja reinicializado automaticamante se ele parar.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Aug 18 16:16:54 GMT 2022
    - 16.8K bytes
    - Viewed (0)
  6. docs/fr/docs/async.md

    Pour appeler une fonction définie avec `async def`, vous devez utiliser `await`. Donc ceci ne marche pas :
    
    ```Python
    # Ceci ne fonctionne pas, car get_burgers a été défini avec async def
    burgers = get_burgers(2)
    ```
    
    ---
    
    Donc, si vous utilisez une bibliothèque qui nécessite que ses fonctions soient appelées avec `await`, vous devez définir la *fonction de chemin* en utilisant `async def` comme dans :
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
  7. .github/actions/notify-translations/app/main.py

        return response.data.updateDiscussionComment.comment
    
    
    if __name__ == "__main__":
        settings = Settings()
        if settings.input_debug:
            logging.basicConfig(level=logging.DEBUG)
        else:
            logging.basicConfig(level=logging.INFO)
        logging.debug(f"Using config: {settings.json()}")
        g = Github(settings.input_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/events.md

    Essas funções podem ser declaradas com `async def` ou `def` normal.
    
    ### Evento `startup`
    
    Para adicionar uma função que deve rodar antes da aplicação iniciar, declare-a com o evento `"startup"`:
    
    ```Python hl_lines="8"
    {!../../../docs_src/events/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  9. docs/pt/docs/async.md

    ---
    
    Novamente, esses são detalhes muito técnicos que provavelmente possam ser úteis caso você esteja procurando por eles.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/query-params-str-validations.md

    Você tem que deixá-lo ativo por um tempo, já que existem clientes o utilizando. Mas você quer que a documentação deixe claro que este parâmetro será <abbr title="obsoleto, recomenda-se que não deve ser utilizado">descontinuado</abbr>.
    
    Então você passa o parâmetro `deprecated=True` para `Query`:
    
    ```Python hl_lines="18"
    {!../../../docs_src/query_params_str_validations/tutorial010.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 9.3K bytes
    - Viewed (0)
Back to top