Skip to main content

Convert LTspice SPICE netlists to WireViz wiring diagrams

Project description

spice2wireviz

Convert LTspice SPICE netlists to WireViz wiring diagrams.

What it does

spice2wireviz reads SPICE netlist files (.net, .cir, .sp) and generates WireViz YAML that documents the physical wiring: connectors, test points, and inter-module cables.

Two operating modes:

  • Single module — External interface of one subcircuit (its connectors, test points, port interface)
  • Inter-module — How multiple subcircuits/boards connect to each other

Install

uv tool install spice2wireviz
# or
pip install spice2wireviz

Usage

# Inter-module wiring (auto-detected from top-level X instances)
spice2wireviz top_level.net -o wiring.yml --render

# Single module external interface
spice2wireviz design.net -s amplifier_board -o amp.yml

# Only connectors and test points, no ground
spice2wireviz design.net --include-prefixes J,TP --no-ground

# Inspect before converting
spice2wireviz design.net --list-subcircuits
spice2wireviz design.net --list-components
spice2wireviz design.net --dry-run

Filtering

Cherry-pick what appears in the diagram:

--include-prefixes J,TP     # Only these component types
--exclude-refs X3,J_DEBUG   # Hide specific references
--include-nets "SIG_*"      # Glob patterns for net names
--no-ground                 # Hide GND connections
--no-power                  # Hide VCC/VDD connections

Development

uv sync --extra dev
uv run pytest
uv run ruff check src/ tests/

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

spice2wireviz-2026.2.13.tar.gz (115.0 kB view details)

Uploaded Source

Built Distribution

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

spice2wireviz-2026.2.13-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file spice2wireviz-2026.2.13.tar.gz.

File metadata

  • Download URL: spice2wireviz-2026.2.13.tar.gz
  • Upload date:
  • Size: 115.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"EndeavourOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for spice2wireviz-2026.2.13.tar.gz
Algorithm Hash digest
SHA256 acb0f3d52201079e1b6d77a2202eb8f309a25be95be0ef886d57383ef64f2fda
MD5 9de70e37a1806bfed58f315f1e7643ad
BLAKE2b-256 0a90941e278d0b52715f6a8734ca3bde83e00df80719aeabfa78cc1e8a00d3cc

See more details on using hashes here.

File details

Details for the file spice2wireviz-2026.2.13-py3-none-any.whl.

File metadata

  • Download URL: spice2wireviz-2026.2.13-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"EndeavourOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for spice2wireviz-2026.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f34cf34892cbcb9bfe3f3aa17bd7fc0e84fb27a971ea90abb2ce5fef1ed2d2ea
MD5 305563ad393632c31a454e79131c8330
BLAKE2b-256 978a74c82ea7ffb0fc89fb7f26e04dd3ea332d5292c1a5d0bd25789bbc31002e

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