Skip to main content Switch to mobile version proteus2py 0.2.0 Script Proteus 8 from Python and AI assistants: headless ProSPICE simulation (SPICE decks, OP/AC/transient/DC/noise), Proteus's own graphs and screenshots, MCP server. Linux (sandboxed Wine).
pip install proteus2py==0.2.0 Copy PIP instructions
Script Proteus 8 from Python. Simulate with Proteus's own engine, let Proteus itself draw the schematic, and export Proteus's own numbers and pictures. Linux (sandboxed Wine) · Windows (experimental) · AI-ready (MCP)
You need your own licensed Proteus 8 Professional (on Linux: 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 that many universities teach with, but it has no scripting interface: every lab means placing parts by hand, reading values off graphs and pasting screenshots. proteus2py automates that using Proteus itself.
🔢 Fast numbers. Proteus's simulation engine (ProSPICE) is driven directly, about 2 s per run, no window: operating point, transient, AC, DC sweep (nested), noise and distortion.
🧾 Results people accept. When a result must come from Proteus, Proteus draws the schematic, simulates the graph and writes the data file itself. evidence packs it with screenshots and SHA-256 checksums.
📷 Native pictures. Schematics and graphs are captures of Proteus: its symbols, wires and graph windows. Nothing is re-plotted.
📚 Your library. 4000+ SPICE models and 37k device-library parts (BC547, 2N2222, 1N4007, TL072, LM324 ...).
🛡️ Safe by design. On Linux everything runs in a bubblewrap sandbox (no network, empty $HOME). Xvfb, Wine and Proteus exist only for the duration of one call.
🤖 AI-ready. A built-in MCP server with 25 tools.
Two ways to get a result
from proteus2py import sim, spice deck = """RC low-pass V1 in 0 AC 1 R1 in out 1k C1 out 0 159.155n .ac dec 100 10 100k """ r = sim.simulate(spice.parse(deck), "rc") # Proteus's engine, no window print(r.gain["v(out)"].f_high_3db) # 1000.1 (Hz) Proteus-authored results
from proteus2py import native, server native.build_native("rc_demo", parts=[ # coordinates are thou (1/1000 inch) {"id": "VIN", "kind": "generator", "device": "SINE", "x": 0, "y": 0, "name": "VIN", "amplitude": "1", "frequency": "1k"}, {"id": "R1", "device": "RES", "x": 1500, "y": 0, "value": "1k"}, {"id": "C1", "device": "CAP", "x": 3000, "y": -800, "value": "100n"}, {"id": "GND", "kind": "terminal", "device": "GROUND", "x": 3000, "y": -1400}, {"id": "OUT", "kind": "probe", "device": "VOLTAGE", "x": 4500, "y": -300}, ], wires=[ {"from": "VIN.0", "to": "R1.0"}, {"from": "R1.1", "to": "C1.0"}, {"from": "C1.1", "to": "GND.0"}, {"from": "OUT.0", "to": "C1.0"}, ], graphs=[ {"type": "ANALOGUE", "x1": -500, "y1": -1900, "x2": 4500, "y2": -3400, "stop": "5m", "traces": [{"name": "Vin", "probes": ["VIN"]}, {"name": "Vout", "probes": ["OUT"]}]}, ]) # Proteus places, wires, simulates and saves report = server.evidence("rc_demo") # Proteus simulates and exports print(report.graphs[0].columns) # ['TIME', 'Vin', 'Vout'] for f in report.files: print(f.kind, f.path, f.sha256) # project, screenshot, graph data, graph view Install
You need Python 3.10 or newer and your own Proteus 8 Professional.
Step 1 - install the Python package
python3 -m venv ~/proteus2py-env source ~/proteus2py-env/bin/activate pip install proteus2py # extras: "proteus2py[plot,fast]" for plots and faster harmonics build_native also needs a small hook DLL, which ships in the package from version 0.2.0. With 0.1.0, or for development, build it from source (needs make and the i686-w64-mingw32-gcc compiler; Debian/Ubuntu: gcc-mingw-w64-i686):
git clone https://github.com/DontforgetAntaiku/proteus2py && cd proteus2py make -C native package && pip install . Step 2 - connect Proteus
# 1. system packages: wine, bubblewrap, Xvfb, xdotool, ImageMagick # 2. install Proteus 8 once into a Wine prefix, to the default folder, and activate your licence WINEPREFIX=~/.wine-proteus wine /path/to/Proteus8Pro_setup.exe # 3. create the sandbox copy (about 2 GB; links into your home folder are removed from the copy) proteus2py setup ~/.wine-proteus proteus2py doctor Windows (experimental) Headless simulation runs the installed PROSPICE.EXE directly. Set PROTEUS_DIR if Proteus is not in Program Files (x86). The GUI driver has not been tested on real Windows, and build_native is Linux only. More in the Windows page.
Step-by-step guide and troubleshooting: Getting started.
Use it from an AI assistant
claude mcp add proteus -- uvx --from proteus2py proteus2py-mcp Claude Desktop and other MCP clients:
{ "mcpServers": { "proteus": { "command": "uvx", "args": ["--from", "proteus2py", "proteus2py-mcp"] } } } build_native needs version 0.2.0 or a source install (see Step 1).
"Build an RC low-pass with a 1 kHz corner in Proteus, run a transient graph and give me Proteus's data file and screenshots."
An example session: transcript.
your script / AI ─▶ sim · spice · native · evidence (Python) │ ┌───────────────┴────────────────────────┐ headless Proteus window SDF netlist ─▶ PROSPICE.EXE Pick Devices, wire tool, graphs (mouse and keyboard) binary results ─▶ decoder p2hook.dll inside PDS.EXE reads Proteus's live design back └───────────────┬────────────────────────┘ Linux: bubblewrap + Wine + Xvfb · Windows: native (experimental) The file formats and the engine's behaviour were worked out by reverse engineering: ProSPICE notes · .pdsprj format · Proteus-authored results.
Linux/Wine is the tested path, developed against one Proteus 8.11 install.
Checked 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.
The two-stage RC filter in the pictures gives 0.497 V at 1 kHz for 1 V in (formula: 0.505 V).
Microcontroller (VSM) models are not supported in headless runs, nor is .INCLUDE of files from your computer.
build_native is young: Linux only; relies on the memory layout of the 8.11 build; slow (minutes); only sine generators can be edited; parts cannot be rotated through the spec; overlapping parts and crossing wires are not checked.
A graph that sits partly off screen gives no full-size graph picture. Keep graphs above y = -3400.
build_design, the older file generator, knows only a handful of devices.
Full guide, analyses and tool reference: https://dontforgetantaiku.github.io/proteus2py/ (sources in docs/).
Reports for other Proteus 8 versions, verified element mappings, measurement helpers and Windows test results are welcome, see CONTRIBUTING.md. Please never commit Proteus binaries, licence data, decompiled code, library dumps or other people's designs.
MIT © 2026 DontforgetAntaiku.
proteus2py is an independent project. Proteus and ISIS are trademarks of Labcenter Electronics Ltd.; this project is not affiliated with, endorsed by or sponsored by Labcenter, and it does not contain or distribute Proteus.
Released: Dec 1, 2026
Author: DontforgetAntaiku
Both files in this release have provenance metadata.
View provenance details
MIT View SPDX License List
circuit-simulation education electronics isis mcp prospice proteus proteus-8 spice wine
Development Status 4 - Beta
Intended Audience Education
Operating System POSIX :: Linux
Programming Language Python :: 3
Scientific/Engineering :: Electronic Design Automation (EDA)
Release files for proteus2py 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 1.3 MB
Release files / proteus2py-0.2.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Release files / proteus2py-0.2.0-py3-none-any.whl
Security for proteus2py 0.2.0
Both files in this release have been uploaded with provenance metadata.
With provenance proteus2py-0.2.0.tar.gz Dec 1, 2026
With provenance proteus2py-0.2.0-py3-none-any.whl Dec 1, 2026
Attestation for proteus2py-0.2.0.tar.gz
Attestation for proteus2py-0.2.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 1, 2026 2 release files Full provenance
Nov 26, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 1875753











