Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 210 for tutorial006c_an_py310 (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_tutorial/test_dependencies/test_tutorial001_tutorial001_02.py

    @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),
            pytest.param("tutorial001_02_an_py39"),
            pytest.param("tutorial001_02_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 7K bytes
    - Click Count (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` 键,值是令牌的主题。
    
    该键是可选的,但要把用户标识放在这个键里,所以本例使用了该键。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 8.9K bytes
    - Click Count (0)
  3. docs/fr/docs/tutorial/path-params-numeric-validations.md

    ## Importer Path
    
    Tout d'abord, importez `Path` de `fastapi`, et importez `Annotated` :
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info
    
    FastAPI a ajouté le support pour `Annotated` (et a commencé à le recommander) dans la version 0.95.0.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Nov 09 16:39:20 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/path-params-numeric-validations.md

    ## Importe `Path` { #import-path }
    
    Primeiro, importe `Path` de `fastapi`, e importe `Annotated`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info | Informação
    
    O FastAPI adicionou suporte a `Annotated` (e passou a recomendá-lo) na versão 0.95.0.
    
    Se você tiver uma versão mais antiga, verá erros ao tentar usar `Annotated`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  5. 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
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  6. 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.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 16:27:21 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  7. 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] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  8. docs/en/docs/advanced/additional-status-codes.md

    To achieve that, import `JSONResponse`, and return your content there directly, setting the `status_code` that you want:
    
    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning
    
    When you return a `Response` directly, like in the example above, it will be returned directly.
    
    It won't be serialized with a model, etc.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2K bytes
    - Click Count (0)
  9. docs/ru/docs/advanced/testing-dependencies.md

    Тогда **FastAPI** будет вызывать это переопределение вместо исходной зависимости.
    
    {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *}
    
    /// tip | Совет
    
    Вы можете задать переопределение для зависимости, используемой в любом месте вашего приложения **FastAPI**.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:37:11 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  10. 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)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.2K bytes
    - Click Count (0)
Back to Top