Flask based web service for neurotransmitter predictions.
conda create -n synisterest python=3.6
conda activate synisterest
pip install -r requirements.txt
python app.py
This flask page allows a user to upload a .csv file with skids/body-ids or synapse positions. The csv file together with informations about the request, such as user id, email address and informations about the request (service to use, skids or positions) is saved in the specified requests dir (defaults to ./requests). For an example request see r_0_0.csv and r_0_0.json. The list of authorized users is saved by default in users.txt, but can be changed by adapting the relevant option in options.ini. All Flask logic is implemented in app.py. HTML templates are stored at ./templates with the bulk of the page in index.html. Static files are in ./static.
To add a new user hash the users email address and append it to the users.txt file:
import hashlib
mail = lorem.ipsum@mail.com
user_hash = hashlib.sha512(str.encode(mail)).hexdigest()
See issues.