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)

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-2024.4.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

dedl_stack_client-2024.4.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dedl_stack_client-2024.4.1.tar.gz
Algorithm Hash digest
SHA256 d5e390adee54836f278b4d0e1bd275cc444841574bcd4cbf26c25502aa453aa8
MD5 901b6faf8038fde83aaf56b8316c05fc
BLAKE2b-256 35f3fea4344e31f5f53e88a0791773a27bda1930bfc04fbecb6e5ae0ac454378

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dedl_stack_client-2024.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b23ed50671b17f100f1f8b966706439fc4f419fd7f3bb6025a59ac2bd556c58
MD5 f095d4e7c81049a4a258bdf8b4b6f78a
BLAKE2b-256 9d9f82ccf1bd75701601989850db460b22d92337df85a4968fc91c2f59443613

See more details on using hashes here.

Supported by

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