Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 263 for tutorial004_an_py39 (0.07 sec)

  1. tests/test_tutorial/test_websockets/test_tutorial002.py

    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="app",
        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_app(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.websockets.{request.param}")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/security/get-current-user.md

    En el capítulo anterior, el sistema de seguridad (que se basa en el sistema de inyección de dependencias) le estaba dando a la *path operation function* un `token` como un `str`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py hl[12] *}
    
    Pero eso aún no es tan útil. Vamos a hacer que nos dé el usuario actual.
    
    ## Crear un modelo de usuario { #create-a-user-model }
    
    Primero, vamos a crear un modelo de usuario con Pydantic.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="app",
        params=[
            "tutorial001_py39",
            "tutorial001_an_py39",
        ],
    )
    def get_app(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.request_forms_and_files.{request.param}")
    
        return mod.app
    
    
    @pytest.fixture(name="client")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/security/oauth2-jwt.md

    새 액세스 토큰을 생성하기 위한 유틸리티 함수를 생성합니다.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[4,7,13:15,29:31,79:87] *}
    
    ## 의존성 수정
    
    `get_current_user` 함수를 이전과 동일한 토큰을 받도록 수정하되, 이번에는 JWT 토큰을 사용하도록 합니다.
    
    받은 토큰을 디코딩하여 검증한 후 현재 사용자를 반환합니다.
    
    토큰이 유효하지 않다면 HTTP 오류를 반환합니다.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *}
    
    ## `/token` 경로 작업 수정
    
    토큰의 만료 시각을 설정하기 위해 `timedelta` 를 생성합니다.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_sql_databases/test_tutorial001.py

        default_registry.dispose()
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py39"),
            pytest.param("tutorial001_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
    - 14K bytes
    - Viewed (0)
  6. docs/uk/docs/tutorial/body-multiple-params.md

    ```Python
    q: Union[str, None] = None
    ```
    
    Або в Python 3.10 та вище:
    
    ```Python
    q: str | None = None
    ```
    
    Наприклад:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *}
    
    
    /// info | Інформація
    
    `Body` також має ті самі додаткові параметри валідації та метаданих, що й `Query`, `Path` та інші, які Ви побачите пізніше.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:19:00 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/dependencies/dependencies-with-yield.md

    Por ejemplo, `dependency_c` puede tener una dependencia de `dependency_b`, y `dependency_b` de `dependency_a`:
    
    {* ../../docs_src/dependencies/tutorial008_an_py39.py hl[6,14,22] *}
    
    Y todas ellas pueden usar `yield`.
    
    En este caso, `dependency_c`, para ejecutar su código de salida, necesita que el valor de `dependency_b` (aquí llamado `dep_b`) todavía esté disponible.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/background-tasks.md

    //// tab | Python 3.10+
    
    {* ../../docs_src/background_tasks/tutorial002_an_py310.py hl[13, 15, 22, 25] *}
    
    ////
    
    //// tab | Python 3.9+
    
    {* ../../docs_src/background_tasks/tutorial002_an_py39.py hl[13, 15, 22, 25] *}
    
    ////
    
    //// tab | Python 3.8+
    
    {* ../../docs_src/background_tasks/tutorial002_an.py hl[14, 16, 23, 26] *}
    
    ////
    
    //// tab | Python 3.10+ 没Annotated
    
    /// tip
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/body-multiple-params.md

    ```Python
    q: Union[str, None] = None
    ```
    
    O en Python 3.10 y superior:
    
    ```Python
    q: str | None = None
    ```
    
    Por ejemplo:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *}
    
    /// info | Información
    
    `Body` también tiene todos los mismos parámetros de validación y metadatos extras que `Query`, `Path` y otros que verás luego.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    Por exemplo, `dependency_c` pode depender de `dependency_b`, e `dependency_b` depender de `dependency_a`:
    
    {* ../../docs_src/dependencies/tutorial008_an_py39.py hl[6,14,22] *}
    
    E todas elas podem utilizar `yield`.
    
    Neste caso, `dependency_c`, para executar seu código de saída, precisa que o valor de `dependency_b` (nomeado de `dep_b` aqui) continue disponível.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top