HugrGenerator¶
- class hugr.metadata.HugrGenerator(*args, **kwargs)[source]¶
Bases:
Metadata[GeneratorDesc]Metadata describing the generator that defined the HUGR module.
This value is only valid when set at the module root node.
Methods
Deserialize the metadata value from the stored json value.
Serialize the metadata value to a json value.
Attributes
- ALIASES: ClassVar[list[str]] = []¶
Other aliases of the metadata key.
Typed metadata reads use these, in order, as fallbacks when KEY is not present. This is used for backward compatibility when renaming metadata keys.
Writes ignore this field and only write to KEY.
- classmethod from_json(value: JsonType) GeneratorDesc[source]¶
Deserialize the metadata value from the stored json value.