Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 69 for Nash (0.26 sec)

  1. tests/test_tutorial/test_security/test_tutorial005_py310.py

        assert verify_password("secret", fake_users_db["johndoe"]["hashed_password"])
    
    
    @needs_py310
    def test_get_password_hash():
        from docs_src.security.tutorial005_py310 import get_password_hash
    
        assert get_password_hash("secretalice")
    
    
    @needs_py310
    def test_create_access_token():
        from docs_src.security.tutorial005_py310 import create_access_token
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  2. docs/ja/docs/advanced/nosql-databases.md

    例えば`dict`が下記のようになっていた場合:
    
    ```Python
    {
        "username": "johndoe",
        "hashed_password": "some_hash",
    }
    ```
    
    `UserInDB`には次のように渡されます:
    
    ```Python
    UserInDB(username="johndoe", hashed_password="some_hash")
    ```
    
    ## **FastAPI** コードの実装
    
    ### `FastAPI` app の作成
    
    ```Python hl_lines="46"
    {!../../../docs_src/nosql_databases/tutorial001.py!}
    ```
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Thu Aug 18 15:54:22 GMT 2022
    - 7K bytes
    - Viewed (0)
  3. docs/de/docs/deployment/concepts.md

    Hier sind einige mögliche Ideen:
    
    * Ein „Init-Container“ in Kubernetes, der vor Ihrem Anwendungs-Container ausgeführt wird
    * Ein Bash-Skript, das die Vorab-Schritte ausführt und dann Ihre Anwendung startet
        * Sie benötigen immer noch eine Möglichkeit, *dieses* Bash-Skript zu starten/neu zu starten, Fehler zu erkennen, usw.
    
    !!! tip "Tipp"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:16:25 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/settings.md

    You can create and use environment variables in the shell, without needing Python:
    
    === "Linux, macOS, Windows Bash"
    
        <div class="termy">
    
        ```console
        // You could create an env var MY_NAME with
        $ export MY_NAME="Wade Wilson"
    
        // Then you could use it with other programs, like
        $ echo "Hello $MY_NAME"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/settings.md

    ## 环境变量
    
    !!! tip
        如果您已经知道什么是"环境变量"以及如何使用它们,请随意跳到下面的下一节。
    
    环境变量(也称为"env var")是一种存在于 Python 代码之外、存在于操作系统中的变量,可以被您的 Python 代码(或其他程序)读取。
    
    您可以在 shell 中创建和使用环境变量,而无需使用 Python:
    
    === "Linux、macOS、Windows Bash"
    
        <div class="termy">
    
        ```console
        // 您可以创建一个名为 MY_NAME 的环境变量
        $ export MY_NAME="Wade Wilson"
    
        // 然后您可以与其他程序一起使用它,例如
        $ echo "Hello $MY_NAME"
    
        Hello Wade Wilson
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/extra-models.md

        {!> ../../../docs_src/extra_models/tutorial005.py!}
        ```
    
    ## 小结
    
    针对不同场景,可以随意使用不同的 Pydantic 模型继承定义的基类。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 01:15:53 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  7. docs/en/docs/index.md

    ## `fastapi-slim`
    
    If you don't want the extra standard optional dependencies, install `fastapi-slim` instead.
    
    When you install with:
    
    ```bash
    pip install fastapi
    ```
    
    ...it includes the same code and dependencies as:
    
    ```bash
    pip install "fastapi-slim[standard]"
    ```
    
    The standard extra dependencies are the ones mentioned above.
    
    ## License
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/extra-models.md

    ```Python hl_lines="1 8"
    {!../../../docs_src/extra_models/tutorial005.py!}
    ```
    
    ## まとめ
    
    複数のPydanticモデルを使用し、ケースごとに自由に継承します。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:36:32 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/sql-databases.md

        And then pass the `hashed_password` argument with the value to save.
    
    !!! warning
        This example is not secure, the password is not hashed.
    
        In a real life application you would need to hash the password and never save them in plaintext.
    
        For more details, go back to the Security section in the tutorial.
    
        Here we are focusing only on the tools and mechanics of databases.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  10. tests/test_response_model_as_return_annotation.py

        return DBUser(name="John", surname="Doe", password_hash="secret")
    
    
    @app.get("/response_model_list_of_model-no_annotation", response_model=List[User])
    def response_model_list_of_model_no_annotation():
        return [
            DBUser(name="John", surname="Doe", password_hash="secret"),
            DBUser(name="Jane", surname="Does", password_hash="secret2"),
        ]
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Aug 14 09:49:57 GMT 2023
    - 47.7K bytes
    - Viewed (0)
Back to top