A Python library that provides a high-level interface to Ngspice and Xyce, enabling simulation of electronic circuits described in SPICE netlists from Python.
PySpice

- Python
- Automation, Electrical and Electronics, Simulation
- Design for Manufacturing (DfM), Electronics, Machine Learning, Simulation, Software, Software Development Kit (SDK)
Features:
- SPICE circuit simulation (AC,DC,transient analysis),netlist generation from Python,parsing SPICE netlists,results plotting and analysis,parameter sweeps,subcircuit definition,Monte Carlo simulations (basic support),integration with NumPy and Matplotlib
Pricing:
- Free
- Pythonic way to automate SPICE simulations, supports popular open-source simulators (Ngspice,Xyce), good for batch simulations and parameter exploration, well-documented.
- Requires Ngspice or Xyce to be installed, limited to what the underlying SPICE engine can do, not a full EDA suite (e.g.,no schematic capture or PCB layout), development activity seems moderate (v1.5 from 2021, but some recent commits on GitHub).
Best for:
- Electrical engineers and students who want to automate electronic circuit simulations, perform parameter sweeps, and analyze results programmatically using Python with Ngspice or Xyce.