Skip to main content

Python API for NeuronBridge

Project description

neuronbridge-python

A Python API for the NeuronBridge neuron similarity search service.

See this notebook for usage examples.

Development Notes

Create a conda env with all the dependencies including Jupyter:

conda env create -f environment.yml
conda activate neuronbridge-python

Install for development

You can install the module for development like this:

conda create --name neuronbridge-python python=3.8
conda activate neuronbridge-python
python setup.py develop

Useful shell commands

To update conda_requirements.txt:

conda env export --from-history --file conda_requirements.txt

To update requirements.txt:

pipreqs --savepath=requirements.txt && pip-compile

Regenerate the JSON schemas:

python neuronbridge/generate_schemas.py

Run the unit tests:

pytest tests

Publishing a new release

  1. Update the version in setup.py

  2. Push all changes and tag a release in GitHub

  3. Build PyPI distribution:

    python setup.py sdist bdist_wheel

  4. Upload to PyPI:

    twine upload dist/*

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

neuronbridge-python-1.0.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

neuronbridge_python-1.0.0-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page