Skip to main content

Python utilities for SPICE simulators

Project description

myspice

A collection of utilities to work with SPICE simulations

Installation

pip install myspice

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.1.tar.gz (37.9 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.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myspice-0.1.1.tar.gz
  • Upload date:
  • Size: 37.9 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.1.tar.gz
Algorithm Hash digest
SHA256 2a24f89c80e5a7e586c44fa51147415beeeaf8f7f5d8260747a74192e3bc580e
MD5 15ccd2c07858a856b736ec24db228516
BLAKE2b-256 9a9e0abffa86f45361b06eb9e73c746784f3d709d2a8ddb7f2a57a3ea68738e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myspice-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e465ef4c8e93e1535047cf519a275c7dc0254f920e9a159f35e93b8cef4caaa
MD5 1b5b4936e31d32c8b9d57c832de4a959
BLAKE2b-256 9c3a388ad9034d0bc7c00681caf7cb27183dbcffc438cb019854dc4b829acad0

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