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.7.0.5.tar.gz (264.6 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.7.0.5-py3-none-any.whl (255.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspice-1.7.0.5.tar.gz
  • Upload date:
  • Size: 264.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inspice-1.7.0.5.tar.gz
Algorithm Hash digest
SHA256 d05df54bc9e99edf7bc2242c7f655e9b00cb34419500d0d2414e83fb4365c8c3
MD5 378719491821a41429a4e0a88463e74a
BLAKE2b-256 5723e0ecdb89f33a540b1880ac97fd7487a0759bcbb939cd09f61cb250d484bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for inspice-1.7.0.5.tar.gz:

Publisher: python-publish.yml on insim-ai/InSpice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: inspice-1.7.0.5-py3-none-any.whl
  • Upload date:
  • Size: 255.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inspice-1.7.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7c4c0ce6b9c9610380285859bc93858a4ef73c7c079522683832d5be4bfdc8f8
MD5 4f9dcb9e11f4b7a2851e8988e65f23ff
BLAKE2b-256 b840f2763e32ba19058c09974655b3496a37aa6643eaae60175e91ed473d4a1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for inspice-1.7.0.5-py3-none-any.whl:

Publisher: python-publish.yml on insim-ai/InSpice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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