Skip to main content

neurarc-py

Python reader/writer for the ARC binary connectome format.

Install

pip install neurarc

# with optional extras
pip install neurarc[scipy]      # scipy sparse matrix export
pip install neurarc[networkx]   # networkx graph export
pip install neurarc[sonata]     # SONATA HDF5 import
pip install neurarc[all]        # everything

Quick Start

from neurarc import load, save, from_csv, from_json, validate

# import from CSV
arc = from_csv("edges.csv")
save("network.arc", arc)

# import from JSON
arc = from_json("edges.json")
save("network.arc", arc)

# load and validate
arc = load("network.arc")
errors = validate(arc)

CLI

# import from CSV/JSON/SONATA
neurarc import edges.csv -o network.arc
neurarc import edges.json -o network.arc
neurarc import nodes.h5 -o network.arc -f sonata --edges-file edges.h5

# export to CSV
neurarc export network.arc -o edges.csv -f csv

# inspect
neurarc info network.arc
neurarc validate network.arc
neurarc dump-header network.arc
neurarc dump-tensors network.arc --values

# convert between formats
neurarc convert network.arc -f csr -o network_csr.arc

Python API

import neurarc as arc

# import
arc_obj = arc.from_csv("edges.csv", neuron_count=1000)
arc_obj = arc.from_json("edges.json")
arc_obj = arc.from_sonata("nodes.h5", "edges.h5")

# save/load
arc.save("network.arc", arc_obj)
arc_obj = arc.load("network.arc")

# convert
csr = arc.to_csr(arc_obj)
back = arc.to_edge_list(csr)

# export
arc.to_csv("output.csv", arc_obj)
scipy_mat = arc.to_scipy_csr(arc_obj)
nx_graph = arc.to_networkx(arc_obj)

Development

pip install -e ".[dev]"
pytest

Metadata

Release files for neurarc 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neurarc 0.1.0
File Size Uploaded Provenance
neurarc-0.1.0.tar.gz 11.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for neurarc 0.1.0
File Interpreter ABI Platform
neurarc-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.9 kB

Release files / neurarc-0.1.0.tar.gz

Download URL neurarc-0.1.0.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aab2bc456f828b2e22f1da89edd8e2b1b07d19d3ee23c39ebeff4e892f14581f
BLAKE2b-256 checksum
How to use checksums
b3cff12727eb15435dd94f6765426ae34e7989e740223da8280c7feefda26210
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 Aug 4, 2026.

Transparency log

Release files / neurarc-0.1.0-py3-none-any.whl

Download URL neurarc-0.1.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed64f1eec40e0c139408a5cec0b996416d4fe1fbae9428a8d351b46c2a6ddcdd
BLAKE2b-256 checksum
How to use checksums
38d117c69be517a52ae43067c9cec477f286141d4d60aff7f1797566f58978a9
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 Aug 4, 2026.

Transparency log

Security for neurarc 0.1.0

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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for neurarc-0.1.0.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 Aug 4, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page