From a9de0b8de0ae8874a0f973b3e83ca700d33c547a Mon Sep 17 00:00:00 2001 From: DEGERICJ Date: Fri, 2 Jun 2023 13:55:32 +0200 Subject: [PATCH] added openeo production connection --- src/openeo_classification/connection.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/openeo_classification/connection.py b/src/openeo_classification/connection.py index c0936dc..ea2a7c9 100644 --- a/src/openeo_classification/connection.py +++ b/src/openeo_classification/connection.py @@ -5,6 +5,7 @@ _default_url = "openeo-dev.vito.be" + def set_backend(url): _default_url = url @@ -14,7 +15,7 @@ def _cached_connection(url) -> Connection: return openeo.connect(url).authenticate_oidc() -def connection(url = _default_url) -> Connection: +def connection(url=_default_url) -> Connection: """ Returns an authenticated openEO connection. Connects to openEO platform by default, but others can be used as well by specifying the url. @@ -25,6 +26,8 @@ def connection(url = _default_url) -> Connection: c = _cached_connection(url) return c -terrascope_dev = partial(connection,"openeo-dev.vito.be") -openeo_platform = partial(connection,"openeo.cloud") -creo = partial(connection,"openeo-dev.creo.vito.be") + +terrascope_dev = partial(connection, "openeo-dev.vito.be") +openeo_platform = partial(connection, "openeo.cloud") +creo = partial(connection, "openeo-dev.creo.vito.be") +openeo_prod = partial(connection, "openeo.vito.be")