Command line and Python
Simulate a .coppa file with no window and get CSV, from Terminal or a Python script.
Coppa simulates without opening a window when you give it --run:
/Applications/Coppa.app/Contents/MacOS/Coppa --run circuit.coppa --analysis tran --out results.csv
| Option | Does |
|---|---|
--analysis | tran (the default), ac, op or dc, using the file’s own run settings. |
--page | A page’s name or number; the first page otherwise. |
--out | The CSV file to write. Without it, the CSV goes to standard output. |
From Python#
tools/coppa.py, in Coppa’s source, wraps the command:
import coppa
cols = coppa.run("filter.coppa", analysis="ac") # a dictionary of columns
arrs = coppa.run("filter.coppa", analysis="ac", numpy=True) # NumPy arrays
The Shortcuts app can also run a circuit, with the Run Simulation action.
Applies to Coppa 0.1 Preview 14. Last updated 22 November 2026.