Skip to content

seung-lab/NeuroglancerJsonServer

Repository files navigation

NeuroglancerJsonServer

REST API to serve and store Neuroglancer jsons

Installation

Not needed for programmatic access, only for hosting.

git clone https://github.com/seung-lab/NeuroglancerJsonServer.git
cd NeuroglancerJsonServer
pip install . --upgrade

Programmatic access

Using the requests package one can post jsons

import requests
json_id = requests.post('{}'.format(server_address), data=[json])

and get them

import requests
json = requests.get('{}/{}'.format(server_address, json_id))

The requests package can be installed via

pip install requests