GeneratorDesc¶
- class hugr.envelope.GeneratorDesc(name: str, version: Version | None)[source]¶
Bases:
objectDescription of the generator that defined the HUGR module.
These are stored at the module root node metadata under the
hugr.metadata.HugrGeneratorentry.Methods
Decodes the generator from a native types obtained from json.load.
Encodes the generator as a dictionary of native types that can be serialized by json.dump.
Attributes
nameversion- classmethod from_json(value: Any) GeneratorDesc[source]¶
Decodes the generator from a native types obtained from json.load.