Skip to main content

spice3

pip install spice3 → import spice.

Circuit simulation for Python, powered by Dune — a Rust engine derived from Berkeley SPICE3f5 and validated circuit-by-circuit against ngspice as numerical oracle.

Status: pre-alpha. This release reserves the package name while the engine's first public version is being finished. The API below works today but may still change.

from pathlib import Path
import spice

result = spice.simulate(Path("rc.cir"))
plot = result.plot("Transient Analysis")
df = plot.df()          # polars DataFrame, scale column first
v2 = plot.column("v(2)")  # zero-copy, read-only numpy array
  • Every SPICE3f5 analysis: .op, .dc, .tran, .ac, .pz, .noise, .disto, .tf, .sens — plus the periodic steady state of driven circuits (.pss, shooting–Newton; spice.pss()).
  • All SPICE3f5 devices, including BJT (Gummel–Poon), MOS levels 1/2/3/6, BSIM1/BSIM2, JFET, MESFET, switches and both transmission lines.
  • Results as polars DataFrames (pandas optional) and zero-copy NumPy arrays; complete type annotations (py.typed).
  • Schematics as decks: spice.pic.extract() reads the netlist of an rpic figure drawn with the dune prelude, spice.simulate() runs it and spice.pic.render() draws it as SVG (with typeset $...$ labels).
  • Faithful netlist semantics: decks that run under spice3 -b or ngspice -b run here, with structured, span-carrying errors.

The engine, corpus and oracle harness live in the Dune repository. BSD-3-Clause, © André Leite and The Regents of the University of California.

Metadata

Release files for spice3 0.3.0

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

Source distribution (sdist)

Source distribution for spice3 0.3.0
File Size Uploaded Provenance Actions
spice3-0.3.0.tar.gz 756.3 kB With provenance Details for spice3-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for spice3 0.3.0
File Actions
spice3-0.3.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for spice3-0.3.0-cp310-abi3-win_amd64.whl
spice3-0.3.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for spice3-0.3.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
spice3-0.3.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for spice3-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
spice3-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for spice3-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 15.9 MB

Release files / spice3-0.3.0.tar.gz

Download URL spice3-0.3.0.tar.gz
Size 756.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2b974f26802be316d72ed3d61f8695412331e2ad495dc1e2b2b63cf540137d3e
BLAKE2b-256 checksum
How to use checksums
55d3bab1bdcd8396d5b57a20f20e9385ab7e04f779284e7395b903465e4de84e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / spice3-0.3.0-cp310-abi3-win_amd64.whl

Download URL spice3-0.3.0-cp310-abi3-win_amd64.whl
Size 4.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a6e1617d943b6232dcdee1fc62ebbfcd067bd047addb80c891bbd57491fffec7
BLAKE2b-256 checksum
How to use checksums
e655d17632e9bf1a072b29c46bd4f1ff869732b5e1334e33eac30f46d6330d9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / spice3-0.3.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL spice3-0.3.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ce7a7415ac02f8296d39ad8140986c853c7c029d7b610f26b530ffc9b3a8a65a
BLAKE2b-256 checksum
How to use checksums
f04dd51641940845c45ee5cd9ea66ac8223dc947414512a20c6ab6c9eb736237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / spice3-0.3.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL spice3-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Size 3.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bd6d051a26b2124f28554d50ff365ca803e1dce3bb633e8ae0569dd9e49d38f1
BLAKE2b-256 checksum
How to use checksums
46992e5e54f51043aa71f036159d162ba476b2b259c98b0d0a3f83d89d73def9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / spice3-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL spice3-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.7 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
cd46e90116f4d046c074de5d825572c237c70a3f8b44755fb78f0bbd18e534cd
BLAKE2b-256 checksum
How to use checksums
6f07a9f8ecb27dd9aa52b33db7a9cdb1c10064d0ea696eefcd8b85f28ad37788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for spice3 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for spice3-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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