gRPC keepalive configuration shared by SDK channels.
Channel constructors accept keepalive as None/True for SDK defaults,
False to disable SDK keepalive, or explicit KeepaliveOptions /
mapping overrides. With the default None value the SDK reads
NEBIUS_GRPC_KEEPALIVE_* environment variables. Explicit constructor options
ignore those environment variables and use SDK defaults for omitted fields.
The resolved configuration is converted into Python gRPC channel arguments by
keepalive_channel_options.
| Class | |
Resolved keepalive configuration. |
| Class | |
Explicit keepalive overrides for nebius.aio.channel.Channel. |
| Function | default |
Return the GoSDK-compatible default keepalive configuration. |
| Function | keepalive |
Convert keepalive config to Python gRPC channel options. |
| Function | keepalive |
Resolve keepalive configuration from environment variables. |
| Function | keepalive |
Resolve keepalive configuration from explicit constructor options. |
| Function | parse |
Parse Go strconv.ParseBool accepted values. |
| Function | parse |
Parse a subset of Go time.ParseDuration syntax into milliseconds. |
| Function | validate |
Validate resolved keepalive values. |
| Constant | DEFAULT |
Whether keepalive pings are sent without active RPC streams. |
| Constant | DEFAULT |
Default interval between client keepalive pings, in milliseconds. |
| Constant | DEFAULT |
Default timeout for a keepalive ping response, in milliseconds. |
| Constant | ENV |
Undocumented |
| Constant | ENV |
Undocumented |
| Constant | ENV |
Undocumented |
| Function | _assert |
Undocumented |
| Function | _duration |
Undocumented |
| Function | _lookup |
Undocumented |
| Function | _mapping |
Undocumented |
| Function | _mapping |
Undocumented |
| Constant | _DURATION |
Undocumented |
| Constant | _NANOSECONDS |
Undocumented |
| Constant | _UNIT |
Undocumented |
Mapping[ str, str | None] | None = None) -> KeepaliveConfig:
(source)
¶
Resolve keepalive configuration from environment variables.
Durations use Go-style syntax such as 20s, 500ms, or 1m30s. Boolean values follow Go strconv.ParseBool accepted values.
KeepaliveOptions | Mapping[ str, object] | bool | None) -> KeepaliveConfig:
(source)
¶
Resolve keepalive configuration from explicit constructor options.
None reads environment variables, True forces SDK defaults, and False disables SDK keepalive. Mappings accept both snake_case and camelCase keys: time_ms/timeMs, timeout_ms/timeoutMs, and permit_without_stream/permitWithoutStream.
Mapping[ str, object], snake_name: str, camel_name: str) -> bool | None:
(source)
¶
Undocumented
Mapping[ str, object], snake_name: str, camel_name: str) -> int | None:
(source)
¶
Undocumented