> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.conductorquantum.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.conductorquantum.com/_mcp/server.

# stanza.registry



## Module Contents

### Classes

| Name | Description |
|------|-------------|
| [`ResourceRegistry`](#stanzaregistryresourceregistry) | Registry for named resources available to routines. |
| [`ResultsRegistry`](#stanzaregistryresultsregistry) | Registry for storing and accessing routine results. |

### API

```python
class stanza.registry.ResourceRegistry(*resources: stanza.base.protocols.NamedResource)
```

Registry for named resources available to routines.

### Initialization

Initialize with resources that have a 'name' attribute.


```python
__getattr__(name: str) -> typing.Any
```

Access resources via attribute notation.


```python
__getitem__(name: str) -> typing.Any
```

Access resources via dict notation.


```python
get(
    name: str, default: typing.Any = None
) -> typing.Any
```

Get resource with optional default.


```python
add(
    name: str, resource: typing.Any
) -> None
```

Add a new resource.


```python
list_resources() -> list[str]
```

List all available resource names.


```python
class stanza.registry.ResultsRegistry
```

Registry for storing and accessing routine results.

### Initialization

Initialize empty results registry.


```python
__getattr__(name: str) -> typing.Any
```

Access results via attribute notation.


```python
__getitem__(name: str) -> typing.Any
```

Access results via dict notation.


```python
__setitem__(
    name: str, value: typing.Any
) -> None
```

Store results via dict notation.


```python
get(
    name: str, default: typing.Any = None
) -> typing.Any
```

Get result with optional default.


```python
store(
    name: str, value: typing.Any
) -> None
```

Store a result.


```python
list_results() -> list[str]
```

List all stored result names.


```python
clear() -> None
```

Clear all stored results.