Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 277 for tutorial010_an_py310 (0.09 sec)

  1. docs/ru/docs/tutorial/security/oauth2-jwt.md

    {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *}
    
    ## Обновление *операции пути* `/token` { #update-the-token-path-operation }
    
    Создайте `timedelta` со временем истечения срока действия токена.
    
    Создайте реальный токен доступа JWT и верните его
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[118:133] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/security/oauth2-jwt.md

    解码并校验接收到的令牌,然后,返回当前用户。
    
    如果令牌无效,则直接返回 HTTP 错误。
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[4,7,13:15,29:31,79:87] *}
    
    ## 更新 `/token` *路径操作*
    
    用令牌过期时间创建 `timedelta` 对象。
    
    创建并返回真正的 JWT 访问令牌。
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[118:133] *}
    
    ### JWT `sub` 的技术细节
    
    JWT 规范还包括 `sub` 键,值是令牌的主题。
    
    该键是可选的,但要把用户标识放在这个键里,所以本例使用了该键。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_header_param_models/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):
        mod = importlib.import_module(f"docs_src.header_param_models.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_param_models/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):
        mod = importlib.import_module(f"docs_src.query_param_models.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8K bytes
    - Viewed (0)
  5. docs/uk/docs/tutorial/path-params-numeric-validations.md

    ## Імпорт Path
    
    Спочатку імпортуйте `Path` з `fastapi` і імпортуйте `Annotated`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info | Інформація
    
    FastAPI додав підтримку `Annotated`  (і почав рекомендувати його використання) у версії 0.95.0.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 16:27:21 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/path-params-numeric-validations.md

    ## Importar Path { #import-path }
    
    Primero, importa `Path` de `fastapi`, e importa `Annotated`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info | Información
    
    FastAPI agregó soporte para `Annotated` (y comenzó a recomendar su uso) en la versión 0.95.0.
    
    Si tienes una versión anterior, obtendrás errores al intentar usar `Annotated`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/path-params-numeric-validations.md

    ## `Path` importieren { #import-path }
    
    Importieren Sie zuerst `Path` von `fastapi`, und importieren Sie `Annotated`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info | Info
    
    FastAPI hat in Version 0.95.0 Unterstützung für `Annotated` hinzugefügt und es zur Verwendung empfohlen.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/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):
        mod = importlib.import_module(f"docs_src.security.{request.param}")
        client = TestClient(mod.app)
        return client
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. docs/ko/docs/advanced/testing-dependencies.md

    테스트를 위해 의존성을 오버라이드하려면, 원래 의존성(함수)을 키로 설정하고 오버라이드할 의존성(다른 함수)을 값으로 설정합니다.
    
    그럼 **FastAPI**는 원래 의존성 대신 오버라이드된 의존성을 호출합니다.
    
    {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *}
    
    /// tip | 팁
    
    **FastAPI** 애플리케이션 어디에서든 사용된 의존성에 대해 오버라이드를 설정할 수 있습니다.
    
    원래 의존성은 *경로 동작 함수*, *경로 동작 데코레이터*(반환값을 사용하지 않는 경우), `.include_router()` 호출 등에서 사용될 수 있습니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 27 22:12:04 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/dependencies/index.md

    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *}
    
    ### Declarando a dependência, no "dependente" { #declare-the-dependency-in-the-dependant }
    
    Da mesma forma que você utiliza `Body`, `Query`, etc. Como parâmetros de sua *função de operação de rota*, utilize `Depends` com um novo parâmetro:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top