raydriver.protocols
Constants
PROTOCOLS
dict[str, ProtocolInfo]
ProtocolInfo
Metadata describing one session protocol.
capabilities is derived from the method/property surface so the two never drift apart.
dialect_family is a hint clients can map to their own command-dialect definitions; it is not a
driver selection.
capabilities
capabilities: dict[str, bool]
config_keys
config_keys: list[str]
connection
connection: str
dialect_family
dialect_family: str
label
label: str
methods
methods: list[str]
name
name: str
properties
properties: list[str]
to_dict()
to_dict() -> dict
The wire form served by protocol/list.
| Parameter | Type | Description |
|---|---|---|
| Returns | dict |
Functions
protocol_info()
protocol_info(name: str) -> ProtocolInfo
Look up a protocol's metadata, raising KeyError if unknown.
| Parameter | Type | Description |
|---|---|---|
name | str | |
| Returns | ProtocolInfo |
protocols()
protocols() -> dict[str, ProtocolInfo]
Every protocol's metadata, keyed by protocol name.
| Parameter | Type | Description |
|---|---|---|
| Returns | dict[str, ProtocolInfo] |
protocols_payload()
protocols_payload() -> dict[str, object]
The protocol/list payload: every protocol's metadata.
| Parameter | Type | Description |
|---|---|---|
| Returns | dict[str, object] |