Skip to main content

Python utilities for SPICE simulators

Project description

myspice

A collection of utilities to work with SPICE simulations

About

myspice was created as a tool to help with the building of ngspice tutorials.

Since others may find it useful, I have released it with a permissive license. My plan is to keep adding functionality as it matures.

The main utility in myspice is ngextract, a script that takes ngspice output and extracts the data generated using .print statements so that it can be easily read and processed by other software. I wanted to have a simple command line tool.

When used as part of the myspice package, the ngextract module returns a dictionary of numpy arrays, which makes integration with matplotlib straightforward.

What myspice is not

There are other good Python packages that provide a more comprehensive integration with solvers such as ngspice or Xyce:

  • PySpice — Simulates circuits with ngspice or Xyce and builds netlists directly from Python.
  • PyLTSpice — Automates running and parsing results from LTspice.
  • spicelib — Successor to PyLTSpice, with broader support for LTspice, ngspice, and Xyce.

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

myspice-0.1.0.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

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

myspice-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file myspice-0.1.0.tar.gz.

File metadata

  • Download URL: myspice-0.1.0.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for myspice-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d55835ba4d0726e991504cc5f1e651d85a3e44d26823548a73c8df525825763
MD5 f1e32e64966b68f54b3a5f7af9a43fe7
BLAKE2b-256 368a3b564f2042783d87728bf0ba354d2eb082cda4bf18f53e265afae6c54328

See more details on using hashes here.

File details

Details for the file myspice-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: myspice-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for myspice-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45792328b7a5093204717fd3cf3e19c6348e3d366df8e4b5595acc322f2ea6e5
MD5 7bd3966676c0457d5250c8bd0fcbbcc6
BLAKE2b-256 58e967bd39d3c9a7139f30bcc0d5ddaba1c0fb42d3960cb326b058254e643347

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