Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 281 for tutorial004_an_py310 (0.15 seconds)

  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.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_security/test_tutorial005.py

    @pytest.fixture(
        name="mod",
        params=[
            pytest.param("tutorial005_py39"),
            pytest.param("tutorial005_py310", marks=needs_py310),
            pytest.param("tutorial005_an_py39"),
            pytest.param("tutorial005_an_py310", marks=needs_py310),
        ],
    )
    def get_mod(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.security.{request.param}")
    
        return mod
    
    
    def get_access_token(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  3. 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`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  4. docs/ko/docs/advanced/websockets.md

    WebSocket 엔드포인트에서 `fastapi`에서 다음을 가져와 사용할 수 있습니다:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    이들은 다른 FastAPI 엔드포인트/*경로 작동*과 동일하게 동작합니다:
    
    {* ../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82] *}
    
    /// info | 정보
    
    WebSocket에서는 `HTTPException`을 발생시키는 것이 적합하지 않습니다. 대신 `WebSocketException`을 발생시킵니다.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  5. 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
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  6. docs/ru/docs/advanced/advanced-dependencies.md

    Это могло бы выглядеть так:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py *}
    
    Код после `yield`, автоматическое закрытие `Session` в:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    …будет выполнен после того, как ответ закончит отправку медленных данных:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  7. 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`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  8. docs/en/docs/advanced/advanced-dependencies.md

    Here's how it could look like:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py *}
    
    The exit code, the automatic closing of the `Session` in:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    ...would be run after the the response finishes sending the slow data:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Nov 13 07:37:15 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  9. docs/pt/docs/advanced/advanced-dependencies.md

    Veja como poderia ser:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py *}
    
    O código de saída, o fechamento automático da `Session` em:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    ...seria executado depois que a resposta terminar de enviar os dados lentos:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 20:32:40 GMT 2025
    - 10K bytes
    - Click Count (0)
  10. docs/es/docs/advanced/advanced-dependencies.md

    Así es como se vería:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py *}
    
    El código de salida, el cierre automático de la `Session` en:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    ...se ejecutaría después de que la response termine de enviar los datos lentos:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 9.8K bytes
    - Click Count (0)
Back to Top