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

Install the client library with pip:

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dedl_stack_client-2024.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a52de9a40a48558f6bb0ff1e43ee7ebc9dab32e8ef9b3a5d0c64a5f66fe201f8
MD5 646c5512d37a3c8636ff5e76e1fd2320
BLAKE2b-256 23c6c163994b1212e9124f93308bf2cd6cff24c4c51b9c4319803f078f0e0830

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dedl_stack_client-2024.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82b66d6d981b84635cca7e832338baa25695fa26c9ad02548e62aee0d58cb77d
MD5 bd7e3cb829a5f6d5ed06d515d32612ee
BLAKE2b-256 98ddd4aca11c48fa857c018e24f78d483fd2a1383c616212ca9bb27233f9a5a8

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