Skip to content

fontlabapp.core.shimgen

shimgen

Generate the static fontlabapp_shim package (tiny __init__.py + typed __init__.pyi) from a UI capture.

The capture (capture.json) is a read-only snapshot of FontLab's menu bar, main-window QActions and Tools > Actions catalogue. It is replayed through fontlabapp.core.host.Host itself, so the shim's names, paths and panels are the ones the live tree produces. Output is deterministic for a given capture.

python -m fontlabapp.core.shimgen generated/fontlabapp_shim/capture.json         generated/fontlabapp_shim

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
API attribute
DEST attribute
GENERATOR_VERSION attribute
generate_py function (capture: dict[str, Any], dest: str=DEST) -> str
generate_pyi function (capture: dict[str, Any], dest: str=DEST) -> str
main function (argv: list[str] | None=None) -> None
replay function (capture: dict[str, Any]) -> Host A <code>Host</code> over the captured UI (never touches FontLab).
write function (capture_path: Path, out: Path, dest: str=DEST) -> list[Path]