Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 616 for tutorial012_py39 (0.09 sec)

  1. docs/de/docs/advanced/events.md

    ### `shutdown`-Event { #shutdown-event }
    
    Um eine Funktion hinzuzufügen, die beim Shutdown der Anwendung ausgeführt werden soll, deklarieren Sie sie mit dem Event `shutdown`:
    
    {* ../../docs_src/events/tutorial002_py39.py hl[6] *}
    
    Hier schreibt die `shutdown`-Eventhandler-Funktion eine Textzeile `"Application shutdown"` in eine Datei `log.txt`.
    
    /// info | Info
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

    
    @pytest.fixture(
        name="mod_name",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
        ],
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. docs/ru/docs/advanced/events.md

    ### Событие `shutdown` { #shutdown-event }
    
    Чтобы добавить функцию, которую нужно запустить при завершении работы приложения, объявите её как обработчик события `"shutdown"`:
    
    {* ../../docs_src/events/tutorial002_py39.py hl[6] *}
    
    Здесь функция-обработчик события `shutdown` запишет строку текста `"Application shutdown"` в файл `log.txt`.
    
    /// info | Информация
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/middleware.md

    {* ../../docs_src/advanced_middleware/tutorial001_py39.py hl[2,6] *}
    
    ## `TrustedHostMiddleware` { #trustedhostmiddleware }
    
    Erzwingt, dass alle eingehenden Requests einen korrekt gesetzten `Host`-Header haben, um sich vor HTTP-Host-Header-Angriffen zu schützen.
    
    {* ../../docs_src/advanced_middleware/tutorial002_py39.py hl[2,6:8] *}
    
    Die folgenden Argumente werden unterstützt:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_python_types/test_tutorial001_tutorial002.py

    import runpy
    from unittest.mock import patch
    
    import pytest
    
    
    @pytest.mark.parametrize(
        "module_name",
        [
            "tutorial001_py39",
            "tutorial002_py39",
        ],
    )
    def test_run_module(module_name: str):
        with patch("builtins.print") as mock_print:
            runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 398 bytes
    - Viewed (0)
  6. docs/ru/docs/advanced/generate-clients.md

    Например, у вас может быть раздел для **items** и другой раздел для **users**, и они могут быть разделены тегами:
    
    {* ../../docs_src/generate_clients/tutorial002_py39.py hl[21,26,34] *}
    
    ### Генерация TypeScript‑клиента с тегами { #generate-a-typescript-client-with-tags }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/middleware.md

    {* ../../docs_src/advanced_middleware/tutorial001_py39.py hl[2,6] *}
    
    ## `TrustedHostMiddleware` { #trustedhostmiddleware }
    
    Garante que todas as requisições recebidas tenham um cabeçalho `Host` corretamente configurado, a fim de proteger contra ataques de cabeçalho de host HTTP.
    
    {* ../../docs_src/advanced_middleware/tutorial002_py39.py hl[2,6:8] *}
    
    Os seguintes argumentos são suportados:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. docs/es/docs/how-to/custom-docs-ui-assets.md

    ```
    
    ### Sirve los archivos estáticos { #serve-the-static-files }
    
    * Importa `StaticFiles`.
    * "Monta" una instance de `StaticFiles()` en un path específico.
    
    {* ../../docs_src/custom_docs_ui/tutorial002_py39.py hl[7,11] *}
    
    ### Prueba los archivos estáticos { #test-the-static-files }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. docs/pt/docs/how-to/custom-docs-ui-assets.md

    ```
    
    ### Prover os arquivos estáticos { #serve-the-static-files }
    
    * Importe `StaticFiles`.
    * "Monte" a instância `StaticFiles()` em um caminho específico.
    
    {* ../../docs_src/custom_docs_ui/tutorial002_py39.py hl[7,11] *}
    
    ### Teste os arquivos estáticos { #test-the-static-files }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_generate_clients/test_tutorial004.py

    from docs_src.generate_clients import tutorial003_py39
    
    
    def test_remove_tags(tmp_path: pathlib.Path):
        tmp_file = tmp_path / "openapi.json"
        openapi_json = tutorial003_py39.app.openapi()
        tmp_file.write_text(json.dumps(openapi_json))
    
        with patch("pathlib.Path", return_value=tmp_file):
            importlib.import_module("docs_src.generate_clients.tutorial004_py39")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.3K bytes
    - Viewed (0)
Back to top