Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for manager (0.15 sec)

  1. fastapi/applications.py

            ] = None,
            lifespan: Annotated[
                Optional[Lifespan[AppType]],
                Doc(
                    """
                    A `Lifespan` context manager handler. This replaces `startup` and
                    `shutdown` functions with a single context manager.
    
                    Read more in the
                    [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
                    """
                ),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    # yieldを持つ依存関係
    
    FastAPIは、いくつかの<abbr title='時々"exit"、"cleanup"、"teardown"、"close"、"context managers"、 ...のように呼ばれる'>終了後の追加のステップ</abbr>を行う依存関係をサポートしています。
    
    これを行うには、`return`の代わりに`yield`を使い、その後に追加のステップを書きます。
    
    !!! tip "豆知識"
        `yield`は必ず一度だけ使用するようにしてください。
    
    !!! info "情報"
        これを動作させるには、**Python 3.7** 以上を使用するか、**Python 3.6** では"backports"をインストールする必要があります:
    
        ```
        pip install async-exit-stack async-generator
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  3. docs/en/docs/fastapi-cli.md

    # FastAPI CLI
    
    **FastAPI CLI** is a command line program `fastapi` that you can use to serve your FastAPI app, manage your FastAPI project, and more.
    
    When you install FastAPI (e.g. with `pip install fastapi`), it includes a package called `fastapi-cli`, this package provides the `fastapi` command in the terminal.
    
    To run your FastAPI app for development, you can use the `fastapi dev` command:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:16 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. docs/de/docs/how-to/custom-request-and-route.md

    Das kann insbesondere eine gute Alternative zur Logik in einer Middleware sein.
    
    Wenn Sie beispielsweise den Requestbody lesen oder manipulieren möchten, bevor er von Ihrer Anwendung verarbeitet wird.
    
    !!! danger "Gefahr"
        Dies ist eine „fortgeschrittene“ Funktion.
    
        Wenn Sie gerade erst mit **FastAPI** beginnen, möchten Sie diesen Abschnitt vielleicht überspringen.
    
    ## Anwendungsfälle
    
    Einige Anwendungsfälle sind:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:18:23 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/extra-models.md

    * **Модель для ввода** должна иметь возможность содержать пароль.
    * **Модель для вывода** не должна содержать пароль.
    * **Модель для базы данных**, возможно, должна содержать хэшированный пароль.
    
    !!! danger "Внимание"
        Никогда не храните пароли пользователей в чистом виде. Всегда храните "безопасный хэш", который вы затем сможете проверить.
    
    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)
  6. docs/en/docs/tutorial/extra-models.md

    * The **input model** needs to be able to have a password.
    * The **output model** should not have a password.
    * The **database model** would probably need to have a hashed password.
    
    !!! danger
        Never store user's plaintext passwords. Always store a "secure hash" that you can then verify.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  7. fastapi/routing.py

            lifespan: Annotated[
                Optional[Lifespan[Any]],
                Doc(
                    """
                    A `Lifespan` context manager handler. This replaces `startup` and
                    `shutdown` functions with a single context manager.
    
                    Read more in the
                    [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
                    """
                ),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/security/oauth2-scopes.md

    <img src="/img/tutorial/security/image11.png">
    
    ## JWT 令牌作用域
    
    现在,修改令牌*路径操作*,返回请求的作用域。
    
    此处仍然使用 `OAuth2PasswordRequestForm`。它包含类型为**字符串列表**的 `scopes` 属性,且`scopes` 属性中包含要在请求里接收的每个作用域。
    
    这样,返回的 JWT 令牌中就包含了作用域。
    
    !!! danger "危险"
    
        为了简明起见,本例把接收的作用域直接添加到了令牌里。
    
        但在您的应用中,为了安全,应该只把作用域添加到确实需要作用域的用户,或预定义的用户。
    
    ```Python hl_lines="153"
    {!../../../docs_src/security/tutorial005.py!}
    ```
    
    ## 在*路径操作*与依赖项中声明作用域
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:43:35 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/security/oauth2-scopes.md

    Und wir geben die Scopes als Teil des JWT-Tokens zurück.
    
    !!! danger "Gefahr"
        Der Einfachheit halber fügen wir hier die empfangenen Scopes direkt zum Token hinzu.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:08 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/extra-models.md

    * O **modelo de entrada** precisa ser capaz de ter uma senha.
    * O **modelo de saída** não deve ter uma senha.
    * O **modelo de banco de dados** provavelmente precisaria ter uma senha criptografada.
    
    !!! danger
        Nunca armazene senhas em texto simples dos usuários. Sempre armazene uma "hash segura" que você pode verificar depois.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.8K bytes
    - Viewed (0)
Back to top