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.2.tar.gz (771.3 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.2-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for neuromorphopy-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6c9a00932fe77232914a4e3bd0afb5366efcf3a9f657d813264fa1e0c4f63e7a
MD5 3c7968dbc75397e08afb085321d874c1
BLAKE2b-256 4f5928363c9c7b5b2aa9d110699a081faa3b1d2bb56936fa2e1211014ee1be94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neuromorphopy-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 136ebf2fa27bd88bfb5653b8fb015b0043bed348f4da59746a72215f10624952
MD5 3ad4f09bb1f41beaac31a918bd2a746e
BLAKE2b-256 1595bf94c36f1478f8a097ddd1214b7797779e4d0ab9c3abd5d4713779254383

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