class documentation

Container for RemoteVariable. Is itself an RemoteUaObject.

Method __contains__ Whether a variable with given name exists in this container.
Method __getitem__ Get a RemoteVariable by the given name.
Method __init__ Create a new instance. Must be asynchronously initialized with init() before use.
Method __iter__ Iterate over all contained RemoteVariable.
Method __len__ Return the number of contained RemoteVariable.
Method dto Return the data transfer object.
Async Method read_all Read all contained variables.
Async Method write_all Write all given values to the corresponding variables.
Async Method _browse_variable Undocumented
Async Method _init Discover our remote variables.
Instance Variable _variables Undocumented
def __contains__(self, key: object) -> bool:

Whether a variable with given name exists in this container.

def __getitem__(self, name: str) -> RemoteVariable:

Get a RemoteVariable by the given name.

Raises
KeyErrorIf no variable with given name exists.
def __init__(self, *, name: str | ua.LocalizedText, ua_node: Node | None, parent: _ParentType, server: RemoteServer, **kwargs):
def __iter__(self) -> Iterator[RemoteVariable]:

Iterate over all contained RemoteVariable.

def __len__(self) -> int:

Return the number of contained RemoteVariable.

def dto(self) -> list[RemoteVariableDTO]:

Return the data transfer object.

async def read_all(self) -> Mapping[str, Any]:

Read all contained variables.

async def write_all(self, values: Mapping[str, Any]):

Write all given values to the corresponding variables.

async def _browse_variable(self, ua_node: Node, name: str):

Undocumented

@override
async def _init(self):

Discover our remote variables.

_variables: dict[str, RemoteVariable] =

Undocumented