Skip to content

API reference

Autogenerated from Python docstrings (Google style). The primary public surface for most users is the model-parser CLI; the library API supports tests, integrations, and codegen pipelines.

model-parser: convert process-model definitions to and from a canonical IR.

The package owns the canonical intermediate representation (IR) for process models and the transformations around it:

  • frontends parse an authoring format (e.g. ExprTk INI) into the IR;
  • backends lower the IR into a target view (e.g. a ModelingToolkit Julia script or a plain numerical f! RHS);
  • validation checks an IR against the schema and backend profiles.

See docs/design/model-parser.md for the authoritative product specification.

IR_VERSION = '0.1.0' module-attribute

SemVer of the IR schema. Major bumps require migration tooling and an ADR.

IRModel

Bases: BaseModel

The canonical intermediate representation of a process-model scaffold.

symbol_names()

Return all declared symbol names (states, inputs, outputs, params, locals).