EnvelopeFormat#
- class hugr.envelope.EnvelopeFormat(*values)[source]#
Bases:
Enum
Format used to encode a HUGR envelope.
Methods
ascii_printable
Attributes
A capnp-encoded hugr-module.
A capnp-encoded hugr-module, immediately followed by a json-encoded extension registry.
A json-encoded hugr-package.
- JSON = 63#
A json-encoded hugr-package. This format is ASCII-printable.
- MODULE = 1#
A capnp-encoded hugr-module.
- MODULE_WITH_EXTS = 2#
A capnp-encoded hugr-module, immediately followed by a json-encoded extension registry.