# NodeId

## class NodeId(text)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)")

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

Parse a native textual NodeId.

Parameters:
:   **text** ([*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)"))

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

Returns:
:   *NodeId* – Parsed identifier.

Examples

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

Attributes

| [`identifier`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.NodeId.md#instro.opcua.types.NodeId.identifier "instro.opcua.types.NodeId.identifier") | The identifier in its corresponding Python type. |
| --- | --- |
| [`namespace_index`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.NodeId.md#instro.opcua.types.NodeId.namespace_index "instro.opcua.types.NodeId.namespace_index") |  |

Methods

| [`from_string`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.NodeId.md#instro.opcua.types.NodeId.from_string "instro.opcua.types.NodeId.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*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)"))

    Native NodeId syntax.

Returns:
:   *NodeId* – Parsed identifier.

### identifier

The identifier in its corresponding Python type.

Type:
:   [*int*](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)") | [*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)") | [*UUID*](https://docs.python.org/3/library/uuid.html#uuid.UUID "(in Python v3.15)") | [*bytes*](https://docs.python.org/3/builtins/stdtypes.html#bytes "(in Python v3.15)")

### namespace_index
