Skip to main content

Python client for DEDL Stack services

Project description

DestinE Data Lake (DEDL) Stack Client

Python client to facilitate the use of DestinE Data Lake Stack Service.

Installation

To install the latest version of the client library run:

pip install dedl-stack-client

Usage

Dask

An example notebook is provided here. The client will guide a user through the needed authentication flow and will automatically create dedicated Dask cluster on each DEDL bridge.

from dedl_stack_client.authn import DaskOIDC
from dedl_stack_client.dask import DaskMultiCluster
from rich.prompt import Prompt

myAuth = DaskOIDC(username=Prompt.ask(prompt="Username"))
myDEDLClusters = DaskMultiCluster(auth=myAuth)
myDEDLClusters.new_cluster()

The DaskMultiCluster class provides an abstraction layer to interact with the various clusters on each DEDL bridge. Computations can be directed to the different Dask clusters by making use of a context manager as given in the following.

with myDEDLClusters.as_current(location="central") as myclient:
    myclient.compute(myarray)
with myDEDLClusters.as_current(location="lumi") as myclient:
    myclient.compute(myarray)
with myDEDLClusters.as_current(location="leonardo") as myclient:
    myclient.compute(myarray)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dedl_stack_client-2025.5.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dedl_stack_client-2025.5.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file dedl_stack_client-2025.5.1.tar.gz.

File metadata

  • Download URL: dedl_stack_client-2025.5.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for dedl_stack_client-2025.5.1.tar.gz
Algorithm Hash digest
SHA256 02f0c9fcfb6c3ce227ea9ea4251500fe31c3a2e637f93d81a087acb532f9841e
MD5 5c7a861e08f1555729ec5eb578e7bd54
BLAKE2b-256 d952dbb0e6577e556121cc98ec28bdab457f4c6895c44be92612f0e43e8055a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for dedl_stack_client-2025.5.1.tar.gz:

Publisher: release.yml on destination-earth/DestinE_EUMETSAT_DEDL_Stack_Client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dedl_stack_client-2025.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dedl_stack_client-2025.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2060952e150fbb3f53eb1a411a8a9a078070c06dc0b4f7975f29bf803e5fc40
MD5 0969ae08e4a3309438374b9448d1e275
BLAKE2b-256 6ff059b9047594e56970780a7f8977ccb4e0e6b6bb21bb311e1abab68f0b5c5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dedl_stack_client-2025.5.1-py3-none-any.whl:

Publisher: release.yml on destination-earth/DestinE_EUMETSAT_DEDL_Stack_Client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page