Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for SETTINGS (0.2 sec)

  1. docs/em/docs/advanced/settings.md

    ```Python hl_lines="2  5-8  11"
    {!../../../docs_src/settings/tutorial001.py!}
    ```
    
    !!! tip
        🚥 👆 💚 🕳 ⏩ 📁 & 📋, 🚫 ⚙️ 👉 🖼, ⚙️ 🏁 1️⃣ 🔛.
    
    ⤴️, 🕐❔ 👆 ✍ 👐 👈 `Settings` 🎓 (👉 💼, `settings` 🎚), Pydantic 🔜 ✍ 🌐 🔢 💼-😛 🌌,, ↖-💼 🔢 `APP_NAME` 🔜 ✍ 🔢 `app_name`.
    
    ⏭ ⚫️ 🔜 🗜 & ✔ 💽. , 🕐❔ 👆 ⚙️ 👈 `settings` 🎚, 👆 🔜 ✔️ 📊 🆎 👆 📣 (✅ `items_per_user` 🔜 `int`).
    
    ### ⚙️ `settings`
    
    ⤴️ 👆 💪 ⚙️ 🆕 `settings` 🎚 👆 🈸:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/settings.md

    ```Python hl_lines="10"
    {!../../../docs_src/settings/app02/config.py!}
    ```
    
    Beachten Sie, dass wir jetzt keine Standardinstanz `settings = Settings()` erstellen.
    
    ### Die Haupt-Anwendungsdatei
    
    Jetzt erstellen wir eine Abhängigkeit, die ein neues `config.Settings()` zurückgibt.
    
    === "Python 3.9+"
    
        ```Python hl_lines="6  12-13"
        {!> ../../../docs_src/settings/app02_an_py39/main.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:14 GMT 2024
    - 17.8K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/settings.md

    ## Pydantic `Settings`
    
    Fortunately, Pydantic provides a great utility to handle these settings coming from environment variables with <a href="https://docs.pydantic.dev/latest/usage/pydantic_settings/" class="external-link" target="_blank">Pydantic: Settings management</a>.
    
    ### Install `pydantic-settings`
    
    First, install the `pydantic-settings` package:
    
    <div class="termy">
    
    ```console
    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)
  4. docs/zh/docs/advanced/settings.md

    ```Python hl_lines="2  5-8  11"
    {!../../../docs_src/settings/tutorial001.py!}
    ```
    
    !!! tip
        如果您需要一个快速的复制粘贴示例,请不要使用此示例,而应使用下面的最后一个示例。
    
    然后,当您创建该 `Settings` 类的实例(在此示例中是 `settings` 对象)时,Pydantic 将以不区分大小写的方式读取环境变量,因此,大写的变量 `APP_NAME` 仍将为属性 `app_name` 读取。
    
    然后,它将转换和验证数据。因此,当您使用该 `settings` 对象时,您将获得您声明的类型的数据(例如 `items_per_user` 将为 `int` 类型)。
    
    ### 使用 `settings`
    
    然后,您可以在应用程序中使用新的 `settings` 对象:
    
    ```Python hl_lines="18-20"
    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)
  5. docs/en/docs/how-to/conditional-openapi.md

    ## Conditional OpenAPI from settings and env vars
    
    You can easily use the same Pydantic settings to configure your generated OpenAPI and the docs UIs.
    
    For example:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/conditional_openapi/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  6. pyproject.toml

        "email_validator >=2.0.0",
        # Uvicorn with uvloop
        "uvicorn[standard] >=0.12.0",
        # TODO: this should be part of some pydantic optional extra dependencies
        # # Settings management
        # "pydantic-settings >=2.0.0",
        # # Extra Pydantic data types
        # "pydantic-extra-types >=2.0.0",
    ]
    
    all = [
        "fastapi-cli >=0.0.2",
        # # For the test client
        "httpx >=0.23.0",
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. .github/actions/comment-docs-preview-in-pr/requirements.txt

    PyGithub
    pydantic>=2.5.3,<3.0.0
    pydantic-settings>=2.1.0,<3.0.0
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 15:02:53 GMT 2024
    - 70 bytes
    - Viewed (0)
  8. docs/en/docs/project-generation.md

        - 🧰 [SQLModel](https://sqlmodel.tiangolo.com) for the Python SQL database interactions (ORM).
        - 🔍 [Pydantic](https://docs.pydantic.dev), used by FastAPI, for the data validation and settings management.
        - 💾 [PostgreSQL](https://www.postgresql.org) as the SQL database.
    - 🚀 [React](https://react.dev) for the frontend.
        - 💃 Using TypeScript, hooks, Vite, and other parts of a modern frontend stack.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 21 21:12:21 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  9. docs/hu/docs/index.md

    * <a href="https://github.com/JoshData/python-email-validator" target="_blank"><code>email_validator</code></a> - e-mail validációkra.
    * <a href="https://docs.pydantic.dev/latest/usage/pydantic_settings/" target="_blank"><code>pydantic-settings</code></a> - Beállítások követésére.
    * <a href="https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/" target="_blank"><code>pydantic-extra-types</code></a> - Extra típusok Pydantic-hoz.
    
    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)
  10. .github/actions/people/Dockerfile

    FROM python:3.9
    
    RUN pip install httpx PyGithub "pydantic==2.0.2" pydantic-settings "pyyaml>=5.3.1,<6.0.0"
    
    COPY ./app /app
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Aug 03 14:12:28 GMT 2023
    - 156 bytes
    - Viewed (0)
Back to top