ExtensionDesc¶
- class hugr.envelope.ExtensionDesc(name: str, version: Version)[source]¶
Bases:
objectHigh level description of a HUGR extension.
A list of these is stored at the module root node metadata under the
hugr.metadata.HugrUsedExtensionsentry.Methods
Decodes the extension from a native types obtained from json.load.
Encodes the extension as a dictionary of native types that can be serialized by json.dump.
Attributes
nameversion- classmethod from_json(value: Any) ExtensionDesc[source]¶
Decodes the extension from a native types obtained from json.load.