Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for helper (0.2 sec)

  1. docs/de/docs/tutorial/body-nested-models.md

    # Body – Verschachtelte Modelle
    
    Mit **FastAPI** können Sie (dank Pydantic) beliebig tief verschachtelte Modelle definieren, validieren und dokumentieren.
    
    ## Listen als Felder
    
    Sie können ein Attribut als Kindtyp definieren, zum Beispiel eine Python-`list`e.
    
    === "Python 3.10+"
    
        ```Python hl_lines="12"
        {!> ../../../docs_src/body_nested_models/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="14"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. docs/en/docs/alternatives.md

    What inspired **FastAPI**, how it compares to alternatives and what it learned from them.
    
    ## Intro
    
    **FastAPI** wouldn't exist if not for the previous work of others.
    
    There have been many tools created before that have helped inspire its creation.
    
    I have been avoiding the creation of a new framework for several years. First I tried to solve all the features covered by **FastAPI** using many different frameworks, plug-ins, and tools.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  3. tests/test_schema_extra_examples.py

            @app.get("/header_example/")
            def header_example(
                data: Union[str, None] = Header(
                    default=None,
                    example="header1",
                ),
            ):
                return data
    
        @app.get("/header_examples/")
        def header_examples(
            data: Union[str, None] = Header(
                default=None,
                examples=[
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 37.7K bytes
    - Viewed (0)
  4. tests/test_security_oauth2_optional.py

            }
        },
        auto_error=False,
    )
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
        return form_data
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/bigger-applications.md

    ```Python
    from .dependencies import get_token_header
    ```
    
    would mean:
    
    * Starting in the same package that this module (the file `app/routers/items.py`) lives in (the directory `app/routers/`)...
    * find the module `dependencies` (an imaginary file at `app/routers/dependencies.py`)...
    * and from it, import the function `get_token_header`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/response-model.md

    ### Typannotationen und Tooling
    
    Sehen wir uns zunächst an, wie Editor, mypy und andere Tools dies sehen würden.
    
    `BaseUser` verfügt über die Basis-Felder. Dann erbt `UserIn` von `BaseUser` und fügt das Feld `Passwort` hinzu, sodass dass es nun alle Felder beider Modelle hat.
    
    Wir annotieren den Funktionsrückgabetyp als `BaseUser`, geben aber tatsächlich eine `UserIn`-Instanz zurück.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:58 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/bigger-applications.md

    ```Python
    from ..dependencies import get_token_header
    ```
    
    表示:
    
    * 从该模块(`app/routers/items.py` 文件)所在的同一个包(`app/routers/` 目录)开始...
    * 跳转到其父包(`app/` 目录)...
    * 在该父包中,找到 `dependencies` 模块(位于 `app/dependencies.py` 的文件)...
    * 然后从中导入函数 `get_token_header`。
    
    正常工作了!🎉
    
    ---
    
    同样,如果我们使用了三个点 `...`,例如:
    
    ```Python
    from ...dependencies import get_token_header
    ```
    
    那将意味着:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/schema-extra-example.md

    ## Использование `example` и `examples` в OpenAPI
    
    При использовании любой из этих функций:
    
    * `Path()`
    * `Query()`
    * `Header()`
    * `Cookie()`
    * `Body()`
    * `Form()`
    * `File()`
    
    вы также можете добавить аргумент, содержащий `example` или группу `examples` с дополнительной информацией, которая будет добавлена в **OpenAPI**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  9. docs/de/docs/features.md

    * HTTP Basic Authentifizierung.
    * **OAuth2** (auch mit **JWT Tokens**). Siehe dazu das Tutorial zu [OAuth2 mit JWT](tutorial/security/oauth2-jwt.md){.internal-link target=_blank}.
    * API Schlüssel in:
        * Header-Feldern.
        * Anfrageparametern.
        * Cookies, usw.
    
    Zusätzlich alle Sicherheitsfunktionen von Starlette (inklusive **Session Cookies**).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 19:43:43 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  10. docs/hu/docs/index.md

        * JSON.
        * Cím paraméterek.
        * Query paraméterek.
        * Cookie-k.
        * Header-ök.
        * Formok.
        * Fájlok.
    * Kimeneti adatok <abbr title=" más néven: serialization, parsing, marshalling">átváltása</abbr>: Python adatok is típusokról hálózati adatokká:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 20.2K bytes
    - Viewed (0)
Back to top