NodeId#

class NodeId(text)#

Bases: object

A namespace index and numeric, string, UUID, or byte-string identifier.

Parse a native textual NodeId.

Parameters:

text (str)

Numeric, string, Guid, or byte-string NodeId syntax.

Returns:

NodeId – Parsed identifier.

Examples

>>> NodeId("ns=2;s=Temperature").identifier
'Temperature'

Attributes

identifier

The identifier in its corresponding Python type.

namespace_index

Methods

from_string

Parse a textual NodeId, equivalent to the constructor.

static from_string(id_str)#

Parse a textual NodeId, equivalent to the constructor.

Parameters:

id_str (str)

Native NodeId syntax.

Returns:

NodeId – Parsed identifier.

identifier#

The identifier in its corresponding Python type.

Type:

int | str | UUID | bytes

namespace_index#