module documentation

Common helpers for the client.

Async Function gather Run given tasks and return all failures.
Async Function ua_read_values Batch read all values for given node ids.
Function ua_unwrap Raise on a bad status code, otherwise return the plain Python value of the variant.
async def gather(tasks: Iterable[Awaitable]) -> list[Exception]:

Run given tasks and return all failures.

ConnectionError, TimeoutError and any BaseException will be raised.

async def ua_read_values(node_ids: Iterable[ua.NodeId], *, ua_client: Client) -> list[ua.DataValue]:

Batch read all values for given node ids.

def ua_unwrap(data_value: ua.DataValue) -> Any:

Raise on a bad status code, otherwise return the plain Python value of the variant.

Raises
OpenSmiRuntimeErrorIf a node could not be read or returned no value.