EnvelopeFormat#

class hugr.envelope.EnvelopeFormat(*values)[source]#

Bases: Enum

Format used to encode a HUGR envelope.

Methods

ascii_printable

Attributes

MODULE

A capnp-encoded hugr-module.

MODULE_WITH_EXTS

A capnp-encoded hugr-module, immediately followed by a json-encoded extension registry.

JSON

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.