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.4.tar.gz (264.2 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.4-py3-none-any.whl (255.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspice-1.7.0.4.tar.gz
  • Upload date:
  • Size: 264.2 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.4.tar.gz
Algorithm Hash digest
SHA256 287cd5610f795b633fc2a3ab5df80608eb136da83223617ddab5880f4cf4623e
MD5 a15c335dd67b4b7342d8c7a65a35943e
BLAKE2b-256 09dac7ce2efb5ab3301059c39de3298765a640c2925f8d0a60657676e2ac915b

See more details on using hashes here.

Provenance

The following attestation bundles were made for inspice-1.7.0.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: inspice-1.7.0.4-py3-none-any.whl
  • Upload date:
  • Size: 255.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 358047eed3862613f4b2a0d47756f1abc2d83b9560424960112af57d3d91b73c
MD5 c90e37e21e44f817c9e67817a17a7bf4
BLAKE2b-256 43eafd8e9474d72daaed9b27c78be2b3519a206d894f5f11199a74027f576302

See more details on using hashes here.

Provenance

The following attestation bundles were made for inspice-1.7.0.4-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