Python version: 3.6 or higher
This Python package provides a Flask based REST frontend for openEO backend drivers. It implements the general REST request handling of the openEO API and dispatches the real work to a pluggable openEO backend driver (such as the openEO GeoPySpark driver).
-
Clone this repo
-
Check out the git submodules
git submodule update --init
-
Set up a virtual environment and install
openeo_driver
and it's dependencies.-
basic install:
pip install . --extra-index-url https://artifactory.vgt.vito.be/api/pypi/python-openeo/simple
-
If you plan to do development/testing, install it in editable mode and include additional dependencies:
pip install -e .[dev] --extra-index-url https://artifactory.vgt.vito.be/api/pypi/python-openeo/simple
-
For development, you can run the service using Flask:
export FLASK_APP=openeo_driver.views
export FLASK_DEBUG=1
flask run
For production, a gunicorn server script is available:
python openeo_driver/server.py