MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / get_node_children

Function get_node_children

opcua/common/ua_utils.py:141–150  ·  view source on GitHub ↗

Get recursively all children of a node

(node, nodes=None)

Source from the content-addressed store, hash-verified

139
140
141def get_node_children(node, nodes=None):
142 """
143 Get recursively all children of a node
144 """
145 if nodes is None:
146 nodes = [node]
147 for child in node.get_children():
148 nodes.append(child)
149 get_node_children(child, nodes)
150 return nodes
151
152
153def get_node_subtypes(node, nodes=None):

Callers

nothing calls this directly

Calls 1

get_childrenMethod · 0.80

Tested by

no test coverage detected