Skip to main content

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.

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.6.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.6-py3-none-any.whl (255.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspice-1.7.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 a88a78b6cccdd443f850764bbb25b740b370f41e45a4a732bef16dd219e4576b
MD5 ed01294b552a8cba15a88a0ea4b71e2a
BLAKE2b-256 5cec3a46d31890565fd7f1cee74137b48e037ed11e663538022836c4a2b99c7a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: inspice-1.7.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 64e4bb5242703154424d9bb424068682c2d23a2e1d3445c06e32658d674dde52
MD5 1513659302e04f74515fba787e9ad4c3
BLAKE2b-256 f146e560116616baf28b6bb2eb83e0719e758410c26fe5eb8b61a456a138ccaf

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

1.7.0.6 This release

2 files

1.7.0.5

2 files

1.7.0.4

2 files

1.7.0.3

2 files

1.7.0.1

1 file

1.6.4.4

2 files

1.6.4.1

2 files

1.6.4.0

2 files

1.6.3.3

2 files

1.6.3.2

2 files

1.6.3.1

3 files

1.6.3

2 files

1.6.2

2 files

1.5

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page