Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 924 for docs_src (0.06 sec)

  1. docs/ru/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Файл `main.py`:
    
    {* ../../docs_src/async_tests/app_a_py39/main.py *}
    
    Файл `test_main.py` содержит тесты для `main.py`, теперь он может выглядеть так:
    
    {* ../../docs_src/async_tests/app_a_py39/test_main.py *}
    
    ## Запуск тестов { #run-it }
    
    Вы можете запустить свои тесты как обычно:
    
    <div class="termy">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/extra-models.md

    ///
    
    ## Múltiplos modelos { #multiple-models }
    
    Aqui está uma ideia geral de como os modelos poderiam parecer com seus campos de senha e os lugares onde são usados:
    
    {* ../../docs_src/extra_models/tutorial001_py310.py hl[7,9,14,20,22,27:28,31:33,38:39] *}
    
    /// info | Informação
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. docs/ru/docs/advanced/testing-events.md

    Если вам нужно, чтобы `lifespan` выполнялся в ваших тестах, вы можете использовать `TestClient` вместе с оператором `with`:
    
    {* ../../docs_src/app_testing/tutorial004_py39.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 902 bytes
    - Viewed (0)
  4. docs/es/docs/advanced/testing-events.md

    {* ../../docs_src/app_testing/tutorial004_py39.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    Puedes leer más detalles sobre ["Ejecutar lifespan en tests en el sitio oficial de documentación de Starlette."](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)
    
    Para los eventos obsoletos `startup` y `shutdown`, puedes usar el `TestClient` así:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 632 bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/query-params-str-validations.md

    ///
    
    Sie können einen `title` hinzufügen:
    
    {* ../../docs_src/query_params_str_validations/tutorial007_an_py310.py hl[10] *}
    
    Und eine `description`:
    
    {* ../../docs_src/query_params_str_validations/tutorial008_an_py310.py hl[14] *}
    
    ## Alias-Parameter { #alias-parameters }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  6. docs/zh/docs/python-types.md

    下面的例子来自 Pydantic 官方文档:
    
    //// tab | Python 3.10+
    
    ```Python
    {!> ../../docs_src/python_types/tutorial011_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python
    {!> ../../docs_src/python_types/tutorial011_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python
    {!> ../../docs_src/python_types/tutorial011.py!}
    ```
    
    ////
    
    
    /// info
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Aug 18 06:34:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/cookie-params.md

    Primero importa `Cookie`:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declarar parámetros de `Cookie` { #declare-cookie-parameters }
    
    Luego declara los parámetros de cookie usando la misma estructura que con `Path` y `Query`.
    
    Puedes definir el valor por defecto así como toda la validación extra o los parámetros de anotación:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/cookie-params.md

    First import `Cookie`:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare `Cookie` parameters { #declare-cookie-parameters }
    
    Then declare the cookie parameters using the same structure as with `Path` and `Query`.
    
    You can define the default value as well as all the extra validation or annotation parameters:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 17:49:27 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/websockets.md

    Pero es la forma más sencilla de enfocarse en el lado del servidor de WebSockets y tener un ejemplo funcional:
    
    {* ../../docs_src/websockets/tutorial001_py39.py hl[2,6:38,41:43] *}
    
    ## Crear un `websocket` { #create-a-websocket }
    
    En tu aplicación de **FastAPI**, crea un `websocket`:
    
    {* ../../docs_src/websockets/tutorial001_py39.py hl[1,46:47] *}
    
    /// note | Detalles Técnicos
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/path-params-numeric-validations.md

    ## Pathのインポート
    
    まず初めに、`fastapi`から`Path`をインポートします:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[1] *}
    
    ## メタデータの宣言
    
    パラメータは`Query`と同じものを宣言することができます。
    
    例えば、パスパラメータ`item_id`に対して`title`のメタデータを宣言するには以下のようにします:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[8] *}
    
    /// note | 備考
    
    パスの一部でなければならないので、パスパラメータは常に必須です。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Jan 04 10:53:58 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top