snnlab
A Python library for authoring, simulating and visualising conductance-based spiking neural networks.
uv add git+https://github.com/eoinmurray/snnlab
from snnlab import lang, sim, viz
snnlab.langauthors and validates deterministic graph bundles.snnlab.simexecutes graphs and supports surrogate-gradient training.snnlab.vizrenders recordings, diagrams, figures and animations.
The simulator currently supports COBA-LIF and leaky-integrator graph populations, AMPA/GABA projections, recurrent/feedback connections and integer-timestep delays. It is not an arbitrary-equation simulator.
Simulator commands
uv run snnsim --help
uv run python -m snnlab.sim sim --help
uv run python -m snnlab.lang.examples.build_examples
Graphviz (dot) is required for diagram exports. FFmpeg is required for video exports. Install these separately through your operating system package manager. Core authoring and simulation do not require either executable.
Development
uv sync --dev
uv run pytest -m "not slow"
For development in Pinglab, use uv add --editable ../snnlab. For reproducible runs, use a Git tag or commit and commit the consumer lockfile.
Documentation
The Fumadocs site lives in docs/, with guides for authoring, simulation, training, visualisation, and scientific contracts.
cd docs
npm ci
npm run dev
Compatibility
Release history is recorded in CHANGELOG.md. See
VERSIONING.md for the version policy, release preparation and
tagging workflow. Check release metadata with uv run python scripts/version.py check.
This initial extraction retains the existing bundle schemas, backend target tools/snnsim, component format versions and numerical defaults. Those strings identify persisted scientific contracts; they are not Python import paths. Package version 0.1.0 identifies the combined distribution.
The retained-data regression against historical Pinglab runs remains in Pinglab. The portable tests live here. No scientific runs or generated example bundles are shipped.
MIT licensed.
Metadata
Release files for snnlab 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 | |
|---|---|---|---|
| snnlab-0.1.1.tar.gz | 883.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snnlab-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / snnlab-0.1.1.tar.gz
| Download URL | snnlab-0.1.1.tar.gz |
|---|---|
| Size | 883.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed67f35892f07ee48a08f956e2f4c3436b3e4207cac8aeaf7a40a08420768145
|
|
BLAKE2b-256 checksum How to use checksums |
f1474538d106b8fb9d541963c4a2128a4e6cf74d56b0ebf7925687ce1157fd34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 4, 2026.
Transparency logRelease files / snnlab-0.1.1-py3-none-any.whl
| Download URL | snnlab-0.1.1-py3-none-any.whl |
|---|---|
| Size | 216.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b02c5a15f7001d1beb8140bedb931215e7b79beb68d91e25992fd8e53fce6888
|
|
BLAKE2b-256 checksum How to use checksums |
b261343bb9ac6d681c34e5f9438fd22dc48998d95e6369eb8e71f19a9c290abd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 4, 2026.
Transparency log