Metadata-Version: 2.4
Name: cicspi
Version: 0.1.3
Summary: Spice toolbox
Author-email: Carsten Wulff <carsten@wulff.no>
License: MIT
Project-URL: Homepage, https://github.com/wulffern/cicspi
Project-URL: Bug Tracker, https://github.com/wulffern/cicspi/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: click

# cicspi

`cicspi` is a small SPICE parsing toolbox that reads `.subckt` definitions into a Python object hierarchy and exposes a simple CLI.

## Install

```bash
python3 -m pip install cicspi
```

## CLI

Print the node list for a subckt in a SPICE file:

```bash
cicspi nodes path/to/netlist.spi my_subckt
```

## Python usage

```python
import cicspi

parser = cicspi.SpiceParser()
parser.parseFile("path/to/netlist.spi")

ckt = parser["my_subckt"]
print(ckt.nodes)
print(ckt.instances)
```

## Release flow

PyPI publishing is handled by GitHub Actions in `.github/workflows/release.yml`.
Publishing runs when a GitHub release is published, or manually through `workflow_dispatch`.
