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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudlab_client-0.1.140.tar.gz.
File metadata
- Download URL: cloudlab_client-0.1.140.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.10.12 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
674f2ebe8527953b37da7d76c452d00aa7feb59716aab41ad1fd13185e70d87b
|
|
| MD5 |
c38be0153e54f0e5bdd80a51b41d71f9
|
|
| BLAKE2b-256 |
49674a705b87475530658ade06c3c55b6bf61277922013f4e69951a493561aa8
|
File details
Details for the file cloudlab_client-0.1.140-py3-none-any.whl.
File metadata
- Download URL: cloudlab_client-0.1.140-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.10.12 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b51b6c88e41471804698ab4211799269d9656ca68caed238d113e67d8e35087c
|
|
| MD5 |
8002a75b9e5da701fd400c9569139c50
|
|
| BLAKE2b-256 |
069520e0d080cebd63d947809c5415b5f7b67950cfe1d27a44df3c863df07d22
|