The Tensorlakehouse openEO driver is a backend implementation of the openEO API specification. It allows data scientists to list available collections and processes and to submit synchronous and asynchronous requests for data retrieving and data processing
Please read our user-guide section if you're interested to learn how to use openEO
Using a virtual environment for all commands in this guide is strongly recommended. In particular, we recommend python 3.9.16 version
- Go to
tensorlakehouse-openeo-driver
directory - Install tensorlakehouse-openeo-driver dependencies:
pip install -r requirements.txt
. Optionally, you can install other dependencies for development purpose:pip install -r dev_requirements.txt
- Optional, but strongly suggested: follow the step describe here to setup detect-secrets tool
PYTHONPATH
for instance,PYTHONPATH=/Users/alice/tensorlakehouse-openeo-driver/
STAC_URL
URL to the STAC service that you want to connect to (e.g.,https://stac-fastapi-sqlalchemy-nasageospatial-dev.cash.sl.cloud9.ibm.com
)CREDENTIALS
is a set of credentials (encoded in base64) that allows this service to access COS S3 bucketsBROKER_URL
- URL to the broker, which mediates communication between clients and workers.RESULT_BACKEND
- URL to the backend, which is necessary when we want to keep track of the tasks' states or retrieve results from tasksGEODN_DISCOVERY_USERNAME
andGEODN_DISCOVERY_PASSWORD
(optional) for basic auth to get GeoDN.Discovery (former PAIRS) metadata
FLASK_APP
and FLASK_DEBUG
environment variables are useful for debugging:
cd <path-to-parent-dir>/tensorlakehouse-openeo-driver/
export FLASK_APP=tensorlakehouse_openeo_driver.local_app
export FLASK_DEBUG=1
flask run
Prerequisites:
- docker or podman-compose installed
Podman is a drop-in replacement for Docker. If you are a Docker user, just replace podman
by docker
and you will be fine.
podman-compose -f podman-compose.yml --env-file /Users/alice/tensorlakehouse-openeo-driver/.env up
Create .env
file
PYTHONPATH=/Users/alice/tensorlakehouse-openeo-driver/
# RIS3 account - App ID-geodn instance - resource group foc-cimf
APPID_ISSUER=<authorization server url>
APPID_USERNAME=<username>
APPID_PASSWORD=<password>
OPENEO_AUTH_CLIENT_ID=<client id>
OPENEO_AUTH_CLIENT_SECRET=<client secret>
TENSORLAKEHOUSE_OPENEO_DRIVER_PORT=9091
GEODN_DISCOVERY_PASSWORD=<geodn-discovery-password>
GEODN_DISCOVERY_USERNAME=<geodn-discovery-username>
DASK_SCHEDULER_ADDRESS=http://127.0.0.1:8787
STAC_URL=https://stac-fastapi-pgstac-geospatial-be-staging.apps.fmaas-backend.fmaas.res.ibm.com/
OPENEO_URL=https://openeo-geodn-driver-pgstac-geospatial-be-staging.apps.fmaas-backend.fmaas.res.ibm.com/openeo/1.1.0/
OPENEO_USERNAME=john
OPENEO_PASSWORD=john123
CREDENTIALS=
BROKER_URL=<
RESULT_BACKEND=
# NUMEXPR_MAX_THREADS=8
Check CONTRIBUTING.md.
Check SUPPORT.md.