Skip to content

Canonical contracts

Use the runtime registry to discover and load vendored source contracts. The registry has no XML parser or generator dependency.

registry

Runtime access to vendored MDE source contracts.

This module never parses EDMX and contains no generation logic.

ContractBundle dataclass

ContractBundle(slug: str, schema_constant: str)

One canonical source contract and its generated projections.

list_contracts

list_contracts() -> tuple[str, ...]

Return stable contract slugs in lexical order.

get_contract

get_contract(slug_or_name: str) -> ContractBundle

Load a contract by its directory slug or canonical contract name.