Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 227 for tutorial008_an_py39 (1.27 sec)

  1. docs/de/docs/how-to/authentication-error-status-code.md

    Sie können beispielsweise eine Unterklasse von `HTTPBearer` erstellen, die einen Fehler `403 Forbidden` zurückgibt, statt des Default-`401 Unauthorized`-Fehlers:
    
    {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *}
    
    /// tip | Tipp
    
    Beachten Sie, dass die Funktion die Exception-Instanz zurückgibt; sie wirft sie nicht. Das Werfen erfolgt im restlichen internen Code.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 17:32:56 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  2. docs/uk/docs/tutorial/query-params-str-validations.md

    Наприклад, якщо Ви хочете оголосити параметр запиту `q` з `min_length` `3` і значенням за замовчуванням `"fixedquery"`:
    
    {* ../../docs_src/query_params_str_validations/tutorial005_an_py39.py hl[9] *}
    
    /// note | Технічні деталі
    
    Наявність значення за замовчуванням будь-якого типу, включаючи `None`, робить параметр необов’язковим (not required).
    
    ///
    
    ## Обов’язкові параметри
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 30 14:17:24 UTC 2025
    - 26.1K bytes
    - Viewed (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 | Совет
    
    Обратите внимание, что функция возвращает экземпляр исключения, не вызывает его. Выброс выполняется остальным внутренним кодом.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  4. 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
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. 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
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/security/first-steps.md

    Vamos primeiro usar o código e ver como funciona, e depois voltaremos para entender o que está acontecendo.
    
    ## Crie um `main.py` { #create-main-py }
    
    Copie o exemplo em um arquivo `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py *}
    
    ## Execute-o { #run-it }
    
    /// info | Informação
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/security/first-steps.md

    Primero solo usemos el código y veamos cómo funciona, y luego volveremos para entender qué está sucediendo.
    
    ## Crea `main.py` { #create-main-py }
    
    Copia el ejemplo en un archivo `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py *}
    
    ## Ejecútalo { #run-it }
    
    /// info | Información
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 8.9K bytes
    - Viewed (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.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:16:35 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_cookie_params/test_tutorial001.py

    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="mod",
        params=[
            "tutorial001_py39",
            pytest.param("tutorial001_py310", marks=needs_py310),
            "tutorial001_an_py39",
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_mod(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.cookie_params.{request.param}")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_params/test_tutorial001.py

    from ...utils import needs_py310
    
    
    @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.header_params.{request.param}")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top