Skip to content

NamespaceModule

Canonical path: o6.ns.NamespaceModule

NamespaceModule

Bases: ModuleType

A generated OPC UA namespace exposed as a normal Python module.

Reached by attribute on o6.ns, for example o6.ns.di, and returned by the ns property of a NodeId, ExpandedNodeId, or QualifiedName. Namespace metadata sits directly on the module, and the generated child modules datatypes, objtypes, vartypes, reftypes, and instances hold the declarations.

Packaged namespaces load lazily: the module exists as soon as it is registered, and its generated source is imported on first attribute access.

See Namespace Mapping in o6\Python.

Attributes

version instance-attribute

version

Model version string, e.g. "1.05.0".

shortname instance-attribute

shortname

Short name the namespace is registered under, e.g. "di".

uri instance-attribute

uri

Namespace URI as published by the model.

publicationDate instance-attribute

publicationDate

Publication date declared by the model, empty when unknown.

scope instance-attribute

scope

Registration scope, which separates identically named namespaces.

index instance-attribute

index

Namespace index in the process-wide namespace table.