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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dedl_stack_client-2024.2.3.tar.gz
Algorithm Hash digest
SHA256 b1e8070674b9d9f3be154aaff45e6699d418432e4430cc2b6e5274cb3bcc70c0
MD5 f9d1899501dc6a9f97971891ef0a8e6f
BLAKE2b-256 50c688f140def07c58a38145c5d8581a1ab2b7793ffae47cbe7ea0bbb6c0b565

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dedl_stack_client-2024.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b78a8f1235d45aa226f5185003b737c671a84ccb003576b8d117f12a66304c1
MD5 3f6aef499056bace1446b7b00bf65ec5
BLAKE2b-256 c48ff602b837c1de63a962a6dd4ef4546e0b13cb97319075991bb57089dad4d4

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