Expand description
Model emission for IR schemas (Python dataclasses/enums/aliases).
Uses sigil-stitch high-level APIs (TypeSpec, FieldSpec, FunSpec, TypeName,
sigil_quote!) for structured code generation with automatic import tracking.
Each schema produces one .py file via FileSpec.
Functionsยง
- api_
type_ name - Like
python_type_namebut Named types import from..models.{snake}(for API files). - future_
annotations_ header - generate_
model_ files - Generate every model file from the IR.
- is_
object_ schema - python_
field_ name - python_
type_ name - Map an IR type expression to a sigil-stitch TypeName with auto-import tracking.
- python_
type_ str - Map an IR type expression to a Python type string (for serialization helpers).