!!! WITH EASYDB NOW USING PYTHON 3 FOR PLUGINS, THIS WEBSERVICE IS NOT NEEDED ANYMORE AND THEREFORE WILL NOT BE UPDATED !!!
- mkdir flask
- cd flask
- python -m venv venv
- . venv/bin/activate
- pip install -r requirements.txt
- cd flask
- . venv/bin/activate
- cd easydb-webservice
- Optional: export FLASK_ENV=development for debug purposes
- export FLASK_APP=run.py
- flask run
This service is also now able to convert chemical formulas of a format like Ca6(Fe,Al)2(SO4)2(B(OH)4)(OH)12*26H2O
to something like Ca₆(Fe,Al)₂(SO₄)₂(B(OH)₄)(OH)₁₂·26H₂O
. To do so, you have to send a post request to yourURL/convert
looking like this:
{
"formula": "Ca6(Fe,Al)2(SO4)2(B(OH)4)(OH)12*26H2O"
}
As an answer you will receive the following JSON:
{
"convertedFormula": "Ca₆(Fe,Al)₂(SO₄)₂(B(OH)₄)(OH)₁₂·26H₂O"
}