Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for Settings (0.2 sec)

  1. 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)
  2. 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)
  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. .github/actions/people/app/main.py

    
    if __name__ == "__main__":
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.input_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
        discussion_nodes = get_discussion_nodes(settings=settings)
        experts_results = get_discussions_experts(discussion_nodes=discussion_nodes)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  6. doc/godebug.md

    There is no plan to remove these settings.
    
    ### Go 1.6
    
    Go 1.6 introduced transparent support for HTTP/2,
    controlled by the [`http2client`, `http2server`, and `http2debug` settings](/pkg/net/http/#hdr-HTTP_2).
    There is no plan to remove these settings.
    
    ### Go 1.5
    
    Go 1.5 introduced a pure Go DNS resolver,
    controlled by the [`netdns` setting](/pkg/net/#hdr-Name_Resolution).
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/SettingsUtilsV4.java

    import org.apache.maven.api.settings.Activation;
    import org.apache.maven.api.settings.ActivationOS;
    import org.apache.maven.api.settings.ActivationProperty;
    import org.apache.maven.api.settings.Profile;
    import org.apache.maven.api.settings.Repository;
    import org.apache.maven.api.settings.RepositoryPolicy;
    import org.apache.maven.api.settings.Settings;
    import org.apache.maven.settings.v4.SettingsMerger;
    
    /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      }
    
      /** Merges [settings] into this peer's settings and sends them to the remote peer. */
      @Throws(IOException::class)
      fun setSettings(settings: Settings) {
        writer.withLock {
          this.withLock {
            if (isShutdown) {
              throw ConnectionShutdownException()
            }
            okHttpSettings.merge(settings)
          }
          writer.settings(settings)
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsValidator.java

    import org.apache.maven.api.services.BuilderProblem;
    import org.apache.maven.api.settings.Mirror;
    import org.apache.maven.api.settings.Profile;
    import org.apache.maven.api.settings.Proxy;
    import org.apache.maven.api.settings.Repository;
    import org.apache.maven.api.settings.Server;
    import org.apache.maven.api.settings.Settings;
    
    /**
     */
    public class DefaultSettingsValidator {
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java

    import org.apache.maven.api.services.xml.XmlReaderRequest;
    import org.apache.maven.api.settings.Profile;
    import org.apache.maven.api.settings.Repository;
    import org.apache.maven.api.settings.RepositoryPolicy;
    import org.apache.maven.api.settings.Server;
    import org.apache.maven.api.settings.Settings;
    import org.apache.maven.settings.v4.SettingsMerger;
    import org.apache.maven.settings.v4.SettingsTransformer;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top