Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 276 of 276 for tutorial015_an_py310 (0.06 sec)

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

    O **FastAPI** sabe o que fazer em cada caso e como reutilizar o mesmo objeto, de forma que todas as tarefas em segundo plano sejam combinadas e executadas em segundo plano depois:
    
    
    {* ../../docs_src/background_tasks/tutorial002_an_py310.py hl[13,15,22,25] *}
    
    Neste exemplo, as mensagens serão escritas no arquivo `log.txt` *após* o envio da resposta.
    
    Se houver uma query na request, ela será registrada em uma tarefa em segundo plano.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. docs/ru/docs/advanced/websockets.md

    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    Они работают так же, как и в других FastAPI эндпоинтах/*операциях пути*:
    
    {* ../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82] *}
    
    /// info | Примечание
    
    В веб-сокете вызывать `HTTPException` не имеет смысла. Вместо этого нужно использовать `WebSocketException`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/background-tasks.md

    **FastAPI** sabe qué hacer en cada caso y cómo reutilizar el mismo objeto, de modo que todas las tareas en segundo plano se combinan y ejecutan en segundo plano después:
    
    {* ../../docs_src/background_tasks/tutorial002_an_py310.py hl[13,15,22,25] *}
    
    En este ejemplo, los mensajes se escribirán en el archivo `log.txt` *después* de que se envíe el response.
    
    Si hay un query en el request, se escribirá en el log en una tarea en segundo plano.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/websockets.md

    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    They work the same way as for other FastAPI endpoints/*path operations*:
    
    {* ../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82] *}
    
    /// info
    
    As this is a WebSocket it doesn't really make sense to raise an `HTTPException`, instead we raise a `WebSocketException`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial004.py

    @pytest.fixture(
        name="mod",
        params=[
            pytest.param("tutorial004_py39"),
            pytest.param("tutorial004_py310", marks=needs_py310),
            pytest.param("tutorial004_an_py39"),
            pytest.param("tutorial004_an_py310", marks=needs_py310),
        ],
    )
    def get_mod(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.security.{request.param}")
    
        return mod
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_sql_databases/test_tutorial002.py

    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        clear_sqlmodel()
        # TODO: remove when updating SQL tutorial to use new lifespan API
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top