Script Proteus 8 from Python and from AI assistants. Headless circuit simulation with Proteus's own engine , Proteus's own graphs and screenshots, an MCP server. Linux · sandboxed Wine · nothing keeps running between requests
Requires your own licensed Proteus 8 Professional (installed in a Wine prefix). proteus2py is an independent project, not affiliated with or endorsed by Labcenter Electronics, and ships no Proteus code, libraries or models: it drives the copy you already have.
Requires your own licensed Proteus 8 Professional (installed in a Wine prefix). proteus2py is an independent project, not affiliated with or endorsed by Labcenter Electronics, and ships no Proteus code, libraries or models: it drives the copy you already have.
Proteus is a capable simulator many universities teach with, but it has no scripting interface. proteus2py reverse-engineered the pieces that matter:
Real numbers, fast. The engine behind Proteus's graph simulation (ProSPICE) is driven directly: ~2 s per run, no GUI. OP, transient, AC, DC sweep (nested), noise; SPICE decks or JSON circuits; 4000+ SPICE models and 37k device-library parts (BC547, 2N2222, 1N4007, TL072, LM324...).
Measurements. -3 dB bandwidth, THD, rise time, expressions of probes ( db(v(out)/v(in)) , input impedance), parameter sweeps, Monte Carlo, plots.
Proteus's own pictures. Open a real .pdsprj , run its graph, get the full-size Proteus graph as an image, or bridge it to numbers ( simulate_project captures the netlist ISIS hands to ProSPICE and re-runs it headless).
Proteus-authored results. For readers who only trust Proteus: build_native makes Proteus itself place any library device, draw the wires and graphs (an injected hook verifies every step), and evidence exports the numbers ( .dat ), graph views and screenshots with SHA-256 checksums. See docs/native.md .
AI-ready. An MCP server lets an assistant build, simulate and measure circuits.
Safe. Everything runs in a bubblewrap sandbox (no network, empty $ ); the GUI (Xvfb + Wine + Proteus) exists only for the duration of one call.
Tools: simulate , simulate_spice , measure , derive , sweep , monte_carlo , plot_run , search_models , model_text , simulate_project , gui_run , build_design , ... Full reference: docs (mkdocs), tool list , example session .
Verified against theory
RC step response (0.03 %), RC -3 dB point (1000.09 Hz), resistor thermal noise (1e-4), BJT bias point and output characteristics, OP07 gain-11 amplifier (5.5002 V), ideal transformer ratio, TL072/LM324 library macromodels, current/voltage-controlled sources, switches and behavioural sources.
Linux only (Wine + bubblewrap). Digital/mixed-mode parts, microcontroller (VSM) models, .INCLUDE of host files and the distortion card are not supported yet. Opening the GUI costs 15-40 s per call. build_design writes projects only for a small device set; build_native has no such limit but is slow (minutes) and needs the hook ( make -C native , mingw). Details: docs/MCP.md , docs/NOTES_prospice.md , docs/PDSPRJ.md .
Contributing, license
CONTRIBUTING.md · MIT . Proteus and ISIS are trademarks of Labcenter Electronics Ltd.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
