Skip to main content

Python interface to Ngspice and Xyce circuit simulators (forked from InSpice)

Project description

InSpice

This repository has been forked from it's original repository PySpice.

About

InSpice is a Python interface to the Ngspice and Xyce circuit simulators. It provides a Python API to describe electronic circuits and to run analog simulations.

Installation

You can install InSpice from PyPI:

pip install inspice

For development installation:

git clone https://github.com/Innovoltive/InSpice.git
cd InSpice
pip install -e .

Dependencies

  • Python >= 3.12
  • Ngspice (as shared library)
  • matplotlib (for plotting)
  • numpy (for numerical computation)

Usage

See the examples directory for various examples of using InSpice.

Basic example:

import InSpice
from InSpice.Unit import *

circuit = InSpice.Circuit('Simple RC Circuit')
circuit.R('1', 'input', 'output', 1@kΩ)
circuit.C('1', 'output', circuit.gnd, 1@µF)

Documentation

For detailed documentation, please refer to the examples and docstrings.

License

InSpice is licensed under the GNU General Public License v3.0 (GPL-3.0), the same license as the original PySpice project.

GNU GPL v3.0

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Acknowledgments

Original project (PySpice) by Fabrice Salvaire

Copyright (C) 2025 Innovoltive

Modified by Innovoltive on April 18, 2025.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inspice-1.6.4.4.tar.gz (253.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inspice-1.6.4.4-py3-none-any.whl (240.0 kB view details)

Uploaded Python 3

File details

Details for the file inspice-1.6.4.4.tar.gz.

File metadata

  • Download URL: inspice-1.6.4.4.tar.gz
  • Upload date:
  • Size: 253.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inspice-1.6.4.4.tar.gz
Algorithm Hash digest
SHA256 2201ef9b0a91e290cf46ad7be35999d2c82b75b46fd4f34a73c6dba559b1a01e
MD5 f69e87f6a0ecfc6fbe52f0076fc69bf7
BLAKE2b-256 5f9da8289d49a61c5aae0f060a079fdab51207c0be7b35e52fe006a294a14a2c

See more details on using hashes here.

File details

Details for the file inspice-1.6.4.4-py3-none-any.whl.

File metadata

  • Download URL: inspice-1.6.4.4-py3-none-any.whl
  • Upload date:
  • Size: 240.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inspice-1.6.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5b00597d1851fd567049d4fb28ec6969a32e526a773580c2ce5d4dda0a487fb4
MD5 62f07a9bbb8a04fa558c2a0fdddc91b0
BLAKE2b-256 2d90db8b94dd11578735df150a413218b2f76d99370b12a4495092b1620fb09f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page