Skip to main content

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)

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

Uploaded Source

Built Distribution

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

cloudlab_client-0.1.145-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloudlab_client-0.1.145.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.3 Linux/6.17.0-1020-azure

File hashes

Hashes for cloudlab_client-0.1.145.tar.gz
Algorithm Hash digest
SHA256 e360f3d702c8739bf2507ab2dd07b32cb5dcd3704ee7f23a411d481ff4e9e46d
MD5 d87effa25235eeec310546b3c80a888f
BLAKE2b-256 2596d259877075c7e13d5090edc391050b563fb1bd2b36fde079552e0f06c11e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloudlab_client-0.1.145-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.3 Linux/6.17.0-1020-azure

File hashes

Hashes for cloudlab_client-0.1.145-py3-none-any.whl
Algorithm Hash digest
SHA256 baad134e5e40130278aff3056788cbdcaca9a0acd78c7e8abfe3d8ffb0d48628
MD5 1cd8a8f48b84562ba40dfb27f65b6038
BLAKE2b-256 2621c47ecec05351551812bdb73b050068be49b5ed223682faaa289489cb814d

See more details on using hashes here.

Supported by

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