Neuromap SDK
Python SDK for programming Neuromap neuromorphic chips.
Installation
pip install neuromap
For development (using Poetry):
cd neuro-sim
poetry install --with dev
Quick Start
from neuromap import Network, Trainer, Exporter, chips
# Build a network matching the NeuroSoC-v1 chip
net = Network(chips.NEUROSOC_V1)
print(net.summary())
# Train
trainer = Trainer(net, lr=1e-3, epochs=20)
history = trainer.fit(train_loader, val_loader)
# Export for deployment
Exporter(net).quantize().save("model.nmap")
Simplified API (snnTorch)
The SDK provides convenience functions backed by snnTorch for a streamlined workflow:
import neuromap as nm
# Encode raw data to spike trains (wraps snntorch.spikegen)
spike_data = nm.encode_sensor_data(raw_images, num_steps=100)
# Build network from the fixed chip topology
model = nm.Network(nm.chips.NEUROSOC_V1)
# Configure surrogate gradients for training
nm.compile_model(model, surrogate="atan")
# Train, then quantize & export to hardware
nm.quantize_and_export_to_spi(model, path="model.nmap")
Available surrogate gradients: "atan" (default), "fast_sigmoid", "straight_through", "spike_rate_escape".
Available encoding methods: "rate" (default), "latency", "delta".
Running Tests
poetry run pytest tests/ -v
Or via Nx from the repo root:
npx nx run neuro-sim:test
Linting & Formatting
poetry run ruff check .
poetry run ruff format .
Metadata
Release files for neuromap 0.1.4
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 |
|---|---|---|---|---|
| neuromap-0.1.4.tar.gz | 36.7 kB | With provenance | Details for neuromap-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neuromap-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for neuromap-0.1.4-py3-none-any.whl |
Total release size: 82.4 kB
Release files / neuromap-0.1.4.tar.gz
| Download URL | neuromap-0.1.4.tar.gz |
|---|---|
| Size | 36.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e032b14ee8c245cedc3969db4870e4caf7928a4e31f8bbe687cfe13baf3e81c
|
|
BLAKE2b-256 checksum How to use checksums |
2a5ab4dc755b7d427d4d383dd92192b3ccc29f661b41a28a2a64284959368200
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 24, 2026.
Transparency logRelease files / neuromap-0.1.4-py3-none-any.whl
| Download URL | neuromap-0.1.4-py3-none-any.whl |
|---|---|
| Size | 45.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0061d4f730e8c35c9c1fad471d42d37f5077f2d2009782d9758ec2fdc0af9026
|
|
BLAKE2b-256 checksum How to use checksums |
da274b61f925531ba78afa83a6cb94884ffe4266b071fd1a1b75cf623fb79886
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 24, 2026.
Transparency logSecurity for neuromap 0.1.4
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
Both files in this release have been uploaded with provenance metadata.
Attestation for neuromap-0.1.4.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 Mar 24, 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.