Labx Python Client
Reason this release was yanked:
updated metadata in 2025.8.5.post1
Project description
Labx
Lab Environment Task Manager
labx-py
Labx Python Client
Usage
Install
pip install labx-py
Example
import labx
# Initiate labx client and test connection
labx.connect()
# Or with custom labx service url
# labx.connect("http://labx-svc")
# Default labx service url can be set via env variable LABX_URL
# Print connected state
print(labx.connected())
# Print worker profiles
print(labx.profiles())
# Print tasks
print(labx.tasks())
# Config and Run Task
run_req = labx.RunRequest(
task_name="my_task",
profile_name="gpu-light",
params_list=[
{"img_url": "url1", "resol": 0},
{"img_url": "url2", "resol": 0},
],
extra_cfg={}
)
run_id = labx.run(run_req)
# Waiting for Run ...
import time
while "running" == labx.status(run_id).state:
time.sleep(60)
print(f"Task {run_id} is running ...")
# Check Run Status and Output
print("Final Status:", labx.status(run_id))
print("Output:", labx.output(run_id))
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
labx_py-2025.8.5.tar.gz
(16.6 kB
view details)
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 labx_py-2025.8.5.tar.gz.
File metadata
- Download URL: labx_py-2025.8.5.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c08b0d574c53e1f0266f3a4b739a873849086edc31e4c27aeee651574f1cc738
|
|
| MD5 |
b4aa5df12d917dd265811d4dd554262a
|
|
| BLAKE2b-256 |
ad7c493bd117f3ec9f3a2eaf00ad44c41315b0e0c0156e4ec0f9e69fe609e9af
|
File details
Details for the file labx_py-2025.8.5-py3-none-any.whl.
File metadata
- Download URL: labx_py-2025.8.5-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c154fc9ce0c1e1664e7d28d8c37bc5b3ad1978a167591c64fa379b4ea9a47a29
|
|
| MD5 |
7cbfef0ebe28e41db9c364ff90e50fc3
|
|
| BLAKE2b-256 |
af78a89994b7e12bb2f9a74c5cc618afd6a3eb0a603a77cb470ff27412f74125
|