Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 277 for tutorial010_an_py310 (0.11 seconds)

  1. docs/en/docs/tutorial/dependencies/index.md

    ### Import `Depends` { #import-depends }
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *}
    
    ### Declare the dependency, in the "dependant" { #declare-the-dependency-in-the-dependant }
    
    The same way you use `Body`, `Query`, etc. with your *path operation function* parameters, use `Depends` with a new parameter:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  2. docs/ru/docs/tutorial/dependencies/index.md

    ### Импорт `Depends` { #import-depends }
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *}
    
    ### Объявите зависимость в «зависимом» { #declare-the-dependency-in-the-dependant }
    
    Точно так же, как вы используете `Body`, `Query` и т. д. с параметрами вашей *функции обработки пути*, используйте `Depends` с новым параметром:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 15.4K bytes
    - Click Count (1)
  3. 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}")
    
        @mod.app.get("/check-class")
    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)
  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/en/docs/tutorial/path-params-numeric-validations.md

    ## Import `Path` { #import-path }
    
    First, import `Path` from `fastapi`, and import `Annotated`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info
    
    FastAPI added support for `Annotated` (and started recommending it) in version 0.95.0.
    
    If you have an older version, you would get errors when trying to use `Annotated`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/security/oauth2-jwt.md

    If the token is invalid, return an HTTP error right away.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *}
    
    ## Update the `/token` *path operation* { #update-the-token-path-operation }
    
    Create a `timedelta` with the expiration time of the token.
    
    Create a real JWT access token and return it.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[118:133] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 02:57:38 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/security/simple-oauth2.md

    ### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform }
    
    Primeiro, importe `OAuth2PasswordRequestForm` e use-o como uma dependência com `Depends` na *operação de rota* para `/token`:
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *}
    
    `OAuth2PasswordRequestForm` é uma dependência de classe que declara um corpo de formulário com:
    
    * O `username`.
    * A `password`.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py

    @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(
            f"docs_src.query_params_str_validations.{request.param}"
        )
    
    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_cookie_params/test_tutorial001.py

    
    @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}")
    
        return mod
    
    
    @pytest.mark.parametrize(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top