Skip to main content

Lightweight standalone python CLI tool for downloading neuron morphologies from the NeuroMorpho archives.

Project description

neuromorphopy

License Documentation PyPI

Neuromorphopy logo

neuromorphopy is a lightweight standalone python CLI tool for downloading neuron morphologies from the NeuroMorpho archives.

Features

  • Simple and intuitive API for searching NeuroMorpho.org
  • Efficient concurrent downloads of neuron morphologies
  • Flexible query system with validation
  • Automatic metadata handling
  • Support for both synchronous and asynchronous operations

Installation

neuromorphopy is supported for python >= 3.11.

Using uv (Recommended):

The easiest way to install neuromorphopy as a standalone CLI tool is with uv:

# install the latest release
uv tool install neuromorphopy
# or install the latest development version from GitHub
uv tool install git+https://github.com/kpeez/neuromorphopy.git

Using pip:

Alternatively, you can install neuromorphopy into your project environment using pip:

# install the latest release
pip install neuromorphopy
# or install the latest development version directly from GitHub
pip install git+https://github.com/kpeez/neuromorphopy.git

Usage

Create a query file (YAML or JSON) to specify what neurons you want:

# query.yaml
filters:
  species: ["mouse"]
  brain_region: ["neocortex"]
  cell_type: ["pyramidal"]
sort: # sorting is optional
  field: "brain_region"
  ascending: true

To download all neurons, you can use an empty query:

# query.yaml
filters: {}

Use the command line interface to explore available fields, preview a query, or download neurons:

# Explore available query fields and values
neuromorpho fields
neuromorpho fields species

# Preview what a query would download
neuromorpho preview -q query.yaml

# Download neurons matching the query
neuromorpho download -q query.yaml -o ./data

For more detailed usage, see our documentation.

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

neuromorphopy-0.3.1.tar.gz (764.6 kB view details)

Uploaded Source

Built Distribution

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

neuromorphopy-0.3.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file neuromorphopy-0.3.1.tar.gz.

File metadata

  • Download URL: neuromorphopy-0.3.1.tar.gz
  • Upload date:
  • Size: 764.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for neuromorphopy-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9e455cc50b969447dfff22eff6afeac21b2452e04c4994a38974df220be33df5
MD5 d0a6c786d22dda5f7731d1af592a5e24
BLAKE2b-256 460501141991df2c4d1300253c7d9bd258f4feddacbfcaf98543489e974e55b3

See more details on using hashes here.

File details

Details for the file neuromorphopy-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for neuromorphopy-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27d01dedceb985590e117295f89b263ddb2ae8e56fccf775b9920a643a17a70a
MD5 3849a49eb1a11b1b2a2bd1b280aedb53
BLAKE2b-256 7506b3cfb7f715ee91f62e9e194bca88dc3bfff4721cb04d711d18b4fe281a51

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