Skip to main content

proteus2py

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

CI PyPI Python MIT

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.

generated design in Proteus, AC response, transient

Why

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).
  • AI-ready. An MCP server lets an assistant build, simulate and measure circuits.
  • Safe. Everything runs in a bubblewrap sandbox (no network, empty $HOME); the GUI (Xvfb + Wine + Proteus) exists only for the duration of one call.

A 60-second tour

pip install proteus2py                      # or: uvx proteus2py-mcp
proteus2py setup ~/.wine-with-proteus       # once: copies a Wine prefix that has Proteus 8 into the sandbox (about 2 GB)
proteus2py doctor
proteus2py spice examples/rc_lowpass.cir    # -3 dB at 1000.09 Hz
from proteus2py import sim, spice

spec = spice.parse(open("examples/ce_amplifier.cir").read())
r = sim.simulate(spec, "ce")                # Proteus's engine, headless
print(r["stats"]["v(c)"])                   # min / max / mean / rms
print(sim.measure_run("ce", "harmonics", "v(c)", f0=1000)["thd_pct"])

MCP server

{ "mcpServers": { "proteus": { "command": "uvx", "args": ["proteus2py-mcp"] } } }

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.

Limits

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. 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.

Metadata

Release files for proteus2py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proteus2py 0.1.0
File Size Uploaded Provenance Actions
proteus2py-0.1.0.tar.gz 747.5 kB With provenance Details for proteus2py-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proteus2py 0.1.0
File Interpreter ABI Platform Actions
proteus2py-0.1.0-py3-none-any.whl Python 3 none any Details for proteus2py-0.1.0-py3-none-any.whl

Total release size: 898.4 kB

Release files / proteus2py-0.1.0.tar.gz

Download URL proteus2py-0.1.0.tar.gz
Size 747.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c6cd4e5c3fa9b794812a82eee6a5270f6eb69dc11a57987208f0d3ea24cc8f05
BLAKE2b-256 checksum
How to use checksums
b9ce53ed4e1c936d9fd266e494da49c3b167ee326163ecc2d6f170d027676d61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Nov 26, 2026.

Transparency log

Release files / proteus2py-0.1.0-py3-none-any.whl

Download URL proteus2py-0.1.0-py3-none-any.whl
Size 150.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eeae37998a8d65b1f3b4aa27a735b9e708bfe976573fe63d6b0f28cf869e9ae9
BLAKE2b-256 checksum
How to use checksums
37b7bf5af15544bd27e116a675706aaa22f6f78654d95d7e730bd6833952a93a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Nov 26, 2026.

Transparency log

Security for proteus2py 0.1.0

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for proteus2py-0.1.0.tar.gz

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 Nov 26, 2026.

Transparency log

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

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page