Work with Morphir IR
Read, write and migrate versioned models with the dependency-free Python library.
Write domain models in Python, exchange Morphir IR and generate Python libraries. Use the same compiler through the Python API, CLI or Morphir extension.
from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True)
class Pending:
pass
@dataclass(frozen=True)
class Approved:
amount: float
type Decision = Pending | Approved
Read, write and migrate versioned models with the dependency-free Python library.
Compile and generate in memory with the typed API, or follow a complete CLI round trip.
Install the extension with finos/morphir. Check the qualified host matrix for MoonBit integration and IR interchange.