Skip to main content

Client for the cloudlab academic cloud environment.

Project description

Cloudlab Client

This package is a client for the Cloudlab service. Cloudlab is a cloud for academic institutions. Because I could not (yet) find any working API for Cloudlab, the current client relies on username / password authentication and web scraping.

Usage

# Create new client and login
username = os.environ.get("CLOUDLAB_USERNAME")
password = os.environ.get("CLOUDLAB_PASSWORD")
cloudlab_client = CloudlabClient()
cloudlab_client.login(username, password)

# List experiments
experiments = cloudlab_client.experiment_list()
print(experiments)

# List an experiment's nodes
nodes = cloudlab_client.experiment_list_nodes("my-experiment")
print(nodes)

# Request an extension (e.g., for 6 days). Reason must be at least 120 characters.
reason = ("Important experiment needed for research, conducted under advisor"
          " <fill_your_advisor>. Particular machines are needed because"
          " <fill_your_reasons>.")
cloudlab_client.experiment_extend("my-experiment", reason, hours=6*24)

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

cloudlab_client-0.1.139.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

cloudlab_client-0.1.139-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file cloudlab_client-0.1.139.tar.gz.

File metadata

  • Download URL: cloudlab_client-0.1.139.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.8.10 Linux/5.15.0-1074-azure

File hashes

Hashes for cloudlab_client-0.1.139.tar.gz
Algorithm Hash digest
SHA256 5809a1cdfccc6dbb44dc11dc93ff49adfd6ccb9d5740c3cdc08d4f6fc5c35660
MD5 9cc7cf75064cd546879c2f11550af6cc
BLAKE2b-256 f9954fe0bb02ffb39f3f7643ce7e1d3c4dc129c945adb2e969c00d77e62d88c5

See more details on using hashes here.

File details

Details for the file cloudlab_client-0.1.139-py3-none-any.whl.

File metadata

  • Download URL: cloudlab_client-0.1.139-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.8.10 Linux/5.15.0-1074-azure

File hashes

Hashes for cloudlab_client-0.1.139-py3-none-any.whl
Algorithm Hash digest
SHA256 01ef09784719a950a20b1e7d03e7d6336d5c57bc7fec5ec096a577d1cdad84c8
MD5 c0b4047eaa70211562d4a4de73c36f52
BLAKE2b-256 c8e64621a3da032fd828d507a4bf13c4ed94756ba06f88d3301685fe2996f236

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