Author constrained .cso.py calculations with Python 3.11+. Runtime dependencies
are the standard library only. Read authoring before
writing calculations and use two-panel for
shared metadata and composed calls.
Follow workspace setup to build and install a wheel. Distribution metadata lives in pyproject.toml. Use the interpreter containing that wheel:
python -m cso_python bindings examples/two-panel
python -m cso_python execute examples/two-panel/estimate.cso.py \
--function estimate --input width=2bindings --check checks generated interfaces without writing or executing
calculations. execute returns a versioned execution response; export returns
CSO JSON. Inspect python -m cso_python --help and each subcommand's --help
for options. Paths resolve from the invoking directory. Authored output and
operational messages go to stderr so stdout contains one JSON response.
Successful execution supplies observations; it does not establish formula consistency. Use the verified CLI for that check. The captured path preflights local source and executes captured UTF-8 bytes. Older single-file exports retain the development exporter. This is trusted local calculation authoring, not isolation for hostile Python.
Public helpers, capture, definitions, planner, execution and bindings implement the pipeline described in the code map.
With the wheel installed, run python -I tests/run.py from this package directory.
The tests use package-owned synthetic fixtures and temporary bindings; no root
examples or Node are required. Workspace integration
owns actual example, installed cross-package and PDF acceptance.