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 andspice.pic.render()draws it as SVG (with typeset$...$labels). - Faithful netlist semantics: decks that run under
spice3 -borngspice -brun 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.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spice3-0.1.1.tar.gz | 738.0 kB | With provenance | Details for spice3-0.1.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| spice3-0.1.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for spice3-0.1.1-cp310-abi3-win_amd64.whl |
| spice3-0.1.1-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.1.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| spice3-0.1.1-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for spice3-0.1.1-cp310-abi3-macosx_11_0_arm64.whl |
| spice3-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for spice3-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 15.8 MB
Release files / spice3-0.1.1.tar.gz
| Download URL | spice3-0.1.1.tar.gz |
|---|---|
| Size | 738.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72b0c9e921ed8e2f266b18510ddcadecb70859d142146de33037fc866c88b324
|
|
BLAKE2b-256 checksum How to use checksums |
a3f8a535565aff6d925fcf354673040b0416c431dab6cee20d266888c2a1590d
|
| 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 logRelease files / spice3-0.1.1-cp310-abi3-win_amd64.whl
| Download URL | spice3-0.1.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0e5835d094d30645e828fe78411a15f762543b05a2cfc63feaf280e6c1879fc9
|
|
BLAKE2b-256 checksum How to use checksums |
80fc90d1b006c361eb0ec93453d067ea90481f74eb59ffc3b5229443dfced193
|
| 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 logRelease files / spice3-0.1.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | spice3-0.1.1-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 |
0c49339090fc0cbd230237ced19e5bc7675c1d4d8792fa65a7313c1d31d34cc1
|
|
BLAKE2b-256 checksum How to use checksums |
6b2d2776b44dc4dca0b26e6d7f8e40bfadb18ef03223b545f320080b20503af3
|
| 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 logRelease files / spice3-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | spice3-0.1.1-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 |
3f4b09ba54a6d40981b083a284d72cd3dc765dc4ddfc40561972311843029539
|
|
BLAKE2b-256 checksum How to use checksums |
d326be26b5836953da8ceaaeb0655a383e8aa918c572d7e118ee75eb7554e5a0
|
| 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 logRelease files / spice3-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | spice3-0.1.1-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 |
8bd6d8d3f1e923f9c0f467e6503f414fa0e6d1ba280753f0de33ff87489fd0b1
|
|
BLAKE2b-256 checksum How to use checksums |
1152b5a393bca098a1fe8a9ce5e1ab82fe5f4d1f75c41bbfc35a56f2f376407f
|
| 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 logSecurity for spice3 0.1.1
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.
Attestation for spice3-0.1.1.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 logA 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.