Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 207 for tutorial004_an_py39 (0.06 seconds)

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

  1. tests/test_tutorial/test_custom_request_and_route/test_tutorial001.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),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.custom_request_and_route.{request.param}")
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  2. docs/ko/docs/tutorial/request-forms.md

    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    ## `Form` 임포트하기
    
    `fastapi`에서 `Form`을 임포트합니다:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *}
    
    ## `Form` 매개변수 정의하기
    
    `Body` 또는 `Query`와 동일한 방식으로 폼 매개변수를 만듭니다:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *}
    
    예를 들어, OAuth2 사양을 사용할 수 있는 방법 중 하나("패스워드 플로우"라고 함)로 `username`과 `password`를 폼 필드로 보내야 합니다.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 09 12:42:55 GMT 2024
    - 3K bytes
    - Click Count (0)
  3. docs/ru/docs/how-to/authentication-error-status-code.md

    Например, вы можете создать подкласс `HTTPBearer`, который будет возвращать ошибку `403 Forbidden` вместо стандартной `401 Unauthorized`:
    
    {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *}
    
    /// tip | Совет
    
    Обратите внимание, что функция возвращает экземпляр исключения, не вызывает его. Выброс выполняется остальным внутренним кодом.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  4. docs/de/docs/tutorial/security/oauth2-jwt.md

    {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *}
    
    ## Die *Pfadoperation* `/token` aktualisieren { #update-the-token-path-operation }
    
    Erstellen Sie ein <abbr title="Zeitdifferenz">`timedelta`</abbr> mit der Ablaufzeit des Tokens.
    
    Erstellen Sie einen echten JWT-Zugriffstoken und geben Sie ihn zurück.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[118:133] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Oct 01 15:19:54 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/security/oauth2-jwt.md

    {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *}
    
    ## Actualizar la *path operation* `/token` { #update-the-token-path-operation }
    
    Crea un `timedelta` con el tiempo de expiración del token.
    
    Crea un verdadero token de acceso JWT y devuélvelo.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[118:133] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/security/first-steps.md

    ## `main.py` erstellen { #create-main-py }
    
    Kopieren Sie das Beispiel in eine Datei `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py *}
    
    ## Ausführen { #run-it }
    
    /// info | Info
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_security/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_an_py39"),
        ],
    )
    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: Wed Dec 17 20:41:43 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  8. docs/es/docs/how-to/authentication-error-status-code.md

    Por ejemplo, puedes crear una subclase de `HTTPBearer` que devuelva un error `403 Forbidden` en lugar del `401 Unauthorized` por defecto:
    
    {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *}
    
    /// tip | Consejo
    
    Ten en cuenta que la función devuelve la instance de la excepción, no la lanza. El lanzamiento se hace en el resto del código interno.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:16:35 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py

    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial014_py39"),
            pytest.param("tutorial014_py310", marks=needs_py310),
            pytest.param("tutorial014_an_py39"),
            pytest.param("tutorial014_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_additional_status_codes/test_tutorial001.py

    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_py39",
            pytest.param("tutorial001_py310", marks=needs_py310),
            "tutorial001_an_py39",
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.additional_status_codes.{request.param}")
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 993 bytes
    - Click Count (0)
Back to Top