Node#

class Node#

Bases: object

A server Node with retained client ownership and a path from RootFolder.

Obtain Nodes through client.get_node(), the standard folder properties, get_child(), or children. Named attribute getters perform server reads and return AttributeValue[T]; node_id and browse_path are local.

Attributes

access_level

Read the node's AccessLevel attribute from the server.

access_level_ex

Read the node's AccessLevelEx attribute from the server.

access_restrictions

Read the node's AccessRestrictions attribute from the server.

array_dimensions

Read the node's ArrayDimensions attribute from the server.

browse_name

Read the node's BrowseName attribute from the server.

browse_path

The accumulated route starting at RootFolder, without a server read.

children

All immediate local hierarchical children, across every page.

contains_no_loops

Read the node's ContainsNoLoops attribute from the server.

data_type

Read the node's DataType attribute from the server.

data_type_definition

Read the node's DataTypeDefinition attribute from the server.

description

Read the node's Description attribute from the server.

display_name

Read the node's DisplayName attribute from the server.

event_notifier

Read the node's EventNotifier attribute from the server.

executable

Read the node's Executable attribute from the server.

historizing

Read the node's Historizing attribute from the server.

inverse_name

Read the node's InverseName attribute from the server.

is_abstract

Read the node's IsAbstract attribute from the server.

minimum_sampling_interval

Read the node's MinimumSamplingInterval attribute from the server.

node_class

Read the node's NodeClass attribute from the server.

node_id

The locally retained identifier; this does not query the server.

role_permissions

Read the node's RolePermissions attribute from the server.

symmetric

Read the node's Symmetric attribute from the server.

user_access_level

Read the node's UserAccessLevel attribute from the server.

user_executable

Read the node's UserExecutable attribute from the server.

user_role_permissions

Read the node's UserRolePermissions attribute from the server.

user_write_mask

Read the node's UserWriteMask attribute from the server.

value

Read the node's Value attribute from the server.

value_rank

Read the node's ValueRank attribute from the server.

write_mask

Read the node's WriteMask attribute from the server.

Methods

get_attribute

Read an attribute with its semantic payload and original quality metadata.

get_child

Resolve one child path and retain its accumulated route from RootFolder.

set_attribute

Write the Value or DisplayName attribute.

access_level#

Read the node’s AccessLevel attribute from the server.

Returns:

AttributeValue[AccessLevelType] – The value, status, and any timestamps for this read.

access_level_ex#

Read the node’s AccessLevelEx attribute from the server.

Returns:

AttributeValue[AccessLevelExType] – The value, status, and any timestamps for this read.

access_restrictions#

Read the node’s AccessRestrictions attribute from the server.

Returns:

AttributeValue[AccessRestrictionType] – The value, status, and any timestamps for this read.

array_dimensions#

Read the node’s ArrayDimensions attribute from the server.

Returns:

AttributeValue[list[int]] – The value, status, and any timestamps for this read.

browse_name#

Read the node’s BrowseName attribute from the server.

Returns:

AttributeValue[QualifiedName] – The value, status, and any timestamps for this read.

browse_path#

The accumulated route starting at RootFolder, without a server read.

Type:

BrowsePath

children#

All immediate local hierarchical children, across every page.

The client skips references to other servers and emits one RuntimeWarning. Each page is bounded by the client decoder and any usable server array limit. A failed browse raises the original error. If Python interrupts the wait, browsing continues in the background.

Type:

list[Node]

contains_no_loops#

Read the node’s ContainsNoLoops attribute from the server.

Returns:

AttributeValue[bool] – The value, status, and any timestamps for this read.

data_type#

Read the node’s DataType attribute from the server.

Returns:

AttributeValue[NodeId] – The value, status, and any timestamps for this read.

data_type_definition#

Read the node’s DataTypeDefinition attribute from the server.

Returns:

AttributeValue[StructureDefinition | EnumDefinition] – The value, status, and any timestamps for this read.

description#

Read the node’s Description attribute from the server.

Returns:

AttributeValue[LocalizedText] – The value, status, and any timestamps for this read.

display_name#

Read the node’s DisplayName attribute from the server.

Returns:

AttributeValue[LocalizedText] – The value, status, and any timestamps for this read.

event_notifier#

Read the node’s EventNotifier attribute from the server.

Returns:

AttributeValue[EventNotifierType] – The value, status, and any timestamps for this read.

executable#

Read the node’s Executable attribute from the server.

Returns:

AttributeValue[bool] – The value, status, and any timestamps for this read.

get_attribute(attr)#

Read an attribute with its semantic payload and original quality metadata.

Parameters:

attr (AttributeId | int | str)

Attribute ID, or case-insensitive canonical or snake-case attribute name.

Returns:

AttributeValue –

The value, status, and timestamps from the server.

A conversion error raises when you access value.

get_child(path)#

Resolve one child path and retain its accumulated route from RootFolder.

Parameters:

path (RelativePath | str)

Nonempty path relative to this Node.

Returns:

Node – The single fully resolved local target.

historizing#

Read the node’s Historizing attribute from the server.

Returns:

AttributeValue[bool] – The value, status, and any timestamps for this read.

inverse_name#

Read the node’s InverseName attribute from the server.

Returns:

AttributeValue[LocalizedText] – The value, status, and any timestamps for this read.

is_abstract#

Read the node’s IsAbstract attribute from the server.

Returns:

AttributeValue[bool] – The value, status, and any timestamps for this read.

minimum_sampling_interval#

Read the node’s MinimumSamplingInterval attribute from the server.

Returns:

AttributeValue[timedelta] – The value, status, and any timestamps for this read.

node_class#

Read the node’s NodeClass attribute from the server.

Returns:

AttributeValue[NodeClass] – The value, status, and any timestamps for this read.

node_id#

The locally retained identifier; this does not query the server.

Type:

NodeId

role_permissions#

Read the node’s RolePermissions attribute from the server.

Returns:

AttributeValue[list[RolePermissionType]] – The value, status, and any timestamps for this read.

set_attribute(attr, value, *, dtype=None)#

Write the Value or DisplayName attribute.

Parameters:
  • attr (AttributeId | str | int)

    Attribute ID or attribute name.

  • value (object)

    Payload to write. DisplayName expects LocalizedText.

  • dtype (DataType | None)

    Wire type to use instead of the default for the Python value.

Ctrl-C can interrupt the wait after submission. The write may still take effect.

symmetric#

Read the node’s Symmetric attribute from the server.

Returns:

AttributeValue[bool] – The value, status, and any timestamps for this read.

user_access_level#

Read the node’s UserAccessLevel attribute from the server.

Returns:

AttributeValue[AccessLevelType] – The value, status, and any timestamps for this read.

user_executable#

Read the node’s UserExecutable attribute from the server.

Returns:

AttributeValue[bool] – The value, status, and any timestamps for this read.

user_role_permissions#

Read the node’s UserRolePermissions attribute from the server.

Returns:

AttributeValue[list[RolePermissionType]] – The value, status, and any timestamps for this read.

user_write_mask#

Read the node’s UserWriteMask attribute from the server.

Returns:

AttributeValue[AttributeWriteMask] – The value, status, and any timestamps for this read.

value#

Read the node’s Value attribute from the server.

Returns:

AttributeValue[Value] – The value, status, and any timestamps for this read.

value_rank#

Read the node’s ValueRank attribute from the server.

Returns:

AttributeValue[int] – The value, status, and any timestamps for this read.

write_mask#

Read the node’s WriteMask attribute from the server.

Returns:

AttributeValue[AttributeWriteMask] – The value, status, and any timestamps for this read.