cliΒΆ

Python interface for the HUGR CLI subcommands.

Provides programmatic access to the HUGR CLI via Rust bindings. Exposes a generic cli_with_io function and helpers for the main subcommands: validate, describe, convert, and mermaid.

Functions

convert

Convert between different HUGR envelope formats.

describe

Describe the contents of a HUGR package.

describe_str

Describe the contents of a HUGR package as text.

mermaid

Generate mermaid diagrams from a HUGR package.

validate

Validate a HUGR package.

Classes

EntrypointDesc

Description of a module's entrypoint node.

ExtensionDesc

Description of a HUGR extension.

ModuleDesc

Description of a HUGR module.

PackageDesc

Description of a HUGR package.