Skip to main content

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.

Metadata

Release files for myspice 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for myspice 0.1.1
File Size Uploaded
myspice-0.1.1.tar.gz 37.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for myspice 0.1.1
File Interpreter ABI Platform
myspice-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 42.5 kB

Release files / myspice-0.1.1.tar.gz

Download URL myspice-0.1.1.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2a24f89c80e5a7e586c44fa51147415beeeaf8f7f5d8260747a74192e3bc580e
BLAKE2b-256 checksum
How to use checksums
9a9e0abffa86f45361b06eb9e73c746784f3d709d2a8ddb7f2a57a3ea68738e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / myspice-0.1.1-py3-none-any.whl

Download URL myspice-0.1.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e465ef4c8e93e1535047cf519a275c7dc0254f920e9a159f35e93b8cef4caaa
BLAKE2b-256 checksum
How to use checksums
9c3a388ad9034d0bc7c00681caf7cb27183dbcffc438cb019854dc4b829acad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release 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