Registry#

class ansys.aedt.mcp.lanes.registry.Registry#

In-memory view of the on-disk registry.

Overview#

from_dict

Rebuild a registry from JSON data.

to_dict

Return a JSON-serializable representation.

Import detail#

from ansys.aedt.mcp.lanes.registry import Registry

Attribute detail#

Registry.schema_version: int = 1#
Registry.servers: dict[str, ServerEntry]#

Method detail#

Registry.to_dict() → dict[str, Any]#

Return a JSON-serializable representation.

Returns:
dict[str, Any]

Serialized registry.

classmethod Registry.from_dict(data: dict[str, Any]) → Registry#

Rebuild a registry from JSON data.

Files with another schema version start empty. Malformed entries are skipped.

Parameters:
datadict[str, Any]

Serialized registry.

Returns:
Registry

Rebuilt registry.