Simulate Electronic Circuit using Python and the Ngspice / Xyce Simulators

PySpice logo


PySpice is a free and open source (*) Python module which interface Python to the Ngspice and Xyce circuit simulators.

Ngspice is a fork of the famous SPICE circuit simulator, while Xyce is a SPICE compatible simulator developed by the Sandia National Laboratories.

(*) PySpice is licensed under GPLv3 therms.

PySpice implements a Ngspice binding and provides an oriented object API on top of SPICE, the simulation output is converted to Numpy arrays for convenience.

PySpice requires Python 3 and works on Linux, Windows and OS X.

To read more on PySpice


What’s changed in versions


How to install PySpice on your system

User FAQ

Answers to frequent questions


Many examples to learn how to use PySpice. To learn more on how to run theses examples, read the introduction to the examples.

Development & Community

How to contribute to the project

API Documentation

Technical reference material, for classes, methods, APIs, commands.

How to Refer to PySpice ?

Guidelines to cite PySpice

Table of Contents