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

Method get_namespace_index

opcua/server/server.py:427–432  ·  view source on GitHub ↗

get index of a namespace using its uri

(self, uri)

Source from the content-addressed store, hash-verified

425 return len(uries) - 1
426
427 def get_namespace_index(self, uri):
428 """
429 get index of a namespace using its uri
430 """
431 uries = self.get_namespace_array()
432 return uries.index(uri)
433
434 def get_event_generator(self, etype=None, emitting_node=ua.ObjectIds.Server):
435 """

Callers

nothing calls this directly

Calls 1

get_namespace_arrayMethod · 0.95

Tested by

no test coverage detected