- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 93 for Settings (0.17 sec)
-
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) -
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) -
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) -
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) -
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) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt
} // SETTINGS_MAX_HEADER_LIST_SIZE 6 -> { // Advisory only, so ignored. } // Must ignore setting with unknown id. else -> { } } settings[id] = value } handler.settings(false, settings) } @Throws(IOException::class) private fun readPushPromise( handler: Handler, length: Int, flags: Int,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 19.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt
realConnection: RealConnection, maxConcurrentStreams: Int, ): Http2Connection { // Write the mocking script. val settings1 = Settings() settings1[Settings.MAX_CONCURRENT_STREAMS] = maxConcurrentStreams peer.sendFrame().settings(settings1) peer.acceptFrame() // ACK peer.sendFrame().ping(false, 2, 0) peer.acceptFrame() // PING peer.play() // Play it back.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 24 04:40:49 GMT 2024 - 12.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt
} } /** Write okhttp's settings to the peer. */ @Throws(IOException::class) fun settings(settings: Settings) { this.withLock { if (closed) throw IOException("closed") frameHeader( streamId = 0, length = settings.size() * 6, type = TYPE_SETTINGS, flags = FLAG_NONE, ) for (i in 0 until Settings.COUNT) { if (!settings.isSet(i)) continue
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 11.3K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
} /** * When [protocols][MockWebServer.protocols] include [HTTP_2][okhttp3.Protocol], this pushes * [settings] before writing the response. */ fun settings(settings: Settings) = apply { this.settings.clear() this.settings.merge(settings) } /** * Attempts to perform a web socket upgrade on the connection.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 13.3K bytes - Viewed (1) -
build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt
generateReadmeFragment(templateFolder, "common-body", settings, comments, descriptor, projectLayoutSetupRegistry) generateReadmeFragment(templateFolder, "$specificContentId-body", settings, comments, descriptor, projectLayoutSetupRegistry)
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Tue Feb 06 17:51:21 GMT 2024 - 13.8K bytes - Viewed (0)