PySpice-org / PySpice

Simulate electronic circuit using Python and the Ngspice / Xyce simulators
https://pyspice.fabrice-salvaire.fr
GNU General Public License v3.0
660 stars 173 forks source link
circuit-simulation ngspice pyspice python python3 spice spice-simulator xyce

.. -- Mode: rst --

.. -- Mode: rst --

.. |PySpiceUrl| replace:: https://pyspice.fabrice-salvaire.fr

.. |PySpiceHomePage| replace:: PySpice Home Page .. _PySpiceHomePage: https://pyspice.fabrice-salvaire.fr

.. |PySpice@github| replace:: https://github.com/FabriceSalvaire/PySpice

.. |PySpice@pypi| replace:: https://pypi.python.org/pypi/PySpice

.. |PySpice@anaconda| replace:: https://anaconda.org/conda-forge/pyspice

.. |PySpice@fs-anaconda| replace:: https://anaconda.org/fabricesalvaire/pyspice

.. |Anaconda Version| image:: https://anaconda.org/conda-forge/pyspice/badges/version.svg :target: https://anaconda.org/conda-forge/pyspice/badges/version.svg :alt: Anaconda last version

.. |Anaconda Downloads| image:: https://anaconda.org/conda-forge/pyspice/badges/downloads.svg :target: https://anaconda.org/conda-forge/pyspice/badges/downloads.svg :alt: Anaconda donwloads

.. |Pypi Version| image:: https://img.shields.io/pypi/v/PySpice.svg :target: https://pypi.python.org/pypi/PySpice :alt: PySpice last version

.. |Pypi License| image:: https://img.shields.io/pypi/l/PySpice.svg :target: https://pypi.python.org/pypi/PySpice :alt: PySpice license

.. |Pypi Python Version| image:: https://img.shields.io/pypi/pyversions/PySpice.svg :target: https://pypi.python.org/pypi/PySpice :alt: PySpice python version

.. |Tavis CI master| image:: https://travis-ci.com/FabriceSalvaire/PySpice.svg?branch=master :target: https://travis-ci.com/FabriceSalvaire/PySpice :alt: PySpice build status @travis-ci.org .. -- Mode: rst --

.. _CFFI: http://cffi.readthedocs.org/en/latest/ .. _Circuit_macros: http://ece.uwaterloo.ca/~aplevich/Circuit_macros .. _IPython: http://ipython.org .. _Kicad: http://www.kicad-pcb.org .. _Matplotlib: http://matplotlib.org .. _Modelica: http://www.modelica.org .. _Ngspice: http://ngspice.sourceforge.net .. _Numpy: http://www.numpy.org .. _PyPI: https://pypi.python.org/pypi .. _Pyterate: https://github.com/FabriceSalvaire/Pyterate .. _Python: http://python.org .. _Sphinx: http://sphinx-doc.org .. _Tikz: http://www.texample.net/tikz .. _Xyce: https://xyce.sandia.gov

.. |CFFI| replace:: CFFI .. |Circuit_macros| replace:: Circuit_macros .. |IPython| replace:: IPython .. |Kicad| replace:: Kicad .. |Matplotlib| replace:: Matplotlib .. |Modelica| replace:: Modelica .. |Ngspice| replace:: Ngspice .. |Numpy| replace:: Numpy .. |PyPI| replace:: PyPI .. |Pyterate| replace:: Pyterate .. |Python| replace:: Python .. |Sphinx| replace:: Sphinx .. |Tikz| replace:: Tikz .. |Xyce| replace:: Xyce

===================================================================================== PySpice : Simulate Electronic Circuit using Python and the Ngspice / Xyce Simulators

|Pypi License| |Pypi Python Version|

|Pypi Version|

|Anaconda Version| |Anaconda Downloads|

|Tavis CI master|

Quick Links

2024 Update

Disclaimer: PySpice is developed on my free time actually, so I could be busy with other tasks and less reactive.

The free Discourse forum was closed some time ago due to a lack of activity. A HTML backup is stored in the directory pyspice-discourse-backup.

On Devel HEAD

.. Brief Notes

An issue was found with NgSpice Shared, we must setlocale(LC_NUMERIC, "C"); see https://sourceforge.net/p/ngspice/bugs/490/

Overview

What is PySpice ?

PySpice is a Python module which interface |Python| to the |Ngspice| and |Xyce|_ circuit simulators.

Where is the Documentation ?

The documentation is available on the |PySpiceHomePage|_.

Note: This site is hosted on my own infrastructure, if the site seems done, please create an issue to notify me.

Where to get help or talk about PySpice ?

Thanks to Discourse <https://www.discourse.org>_, PySpice now has a Forum hosted at https://pyspice.discourse.group

What are the main features ?

How to install it ?

Look at the installation <https://pyspice.fabrice-salvaire.fr/releases/latest/installation.html>_ section in the documentation.

Pull Request Recommendation

To make it easier to merge your pull request, you should divide your PR into smaller and easier-to-verify units.

Please do not make a pull requests with a lot of modifications which are difficult to check. If I merge pull requests blindly then there is a high risk this software will become a mess quickly for everybody.

Credits

Authors: Fabrice Salvaire <http://fabrice-salvaire.fr> and contributors <https://github.com/FabriceSalvaire/PySpice/blob/master/CONTRIBUTORS.md>

News

.. -- Mode: rst --

.. no title here

V1.6.0 (development release)

V1.5.0 (production release) 2021-05-15

V1.4.3 2020-07-04

A huge effort, thanks to @stuarteberg Stuart Berg, has been made to make Ngspice and PySpice available on Anaconda (conda-forge) for the Window, OSX and Linux platforms. Thanks to the conda-forge continuous integration platform, we can now run unit tests and the examples on theses platforms automatically. Hope this will make the software more robust and easier to run !

V1.4.0 2020-05-05

This release is yanked due to broken Windows support.

V1.3.2 2019-03-11

V1.2.0 2018-06-07

.. :ref:user-faq-page

V1.1.0 2017-09-06

V1.0.0 2017-09-06

V0.4.2

V0.4.0 2017-07-31

V0.3.2 2017-02-22

V0.3.1 2017-02-22

V0.3.0 2015-12-08

V0 2014-03-21

Started project

.. End

.. End