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))
Metadata
Release files for labx-py 2025.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| labx_py-2025.9.2.tar.gz | 16.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| labx_py-2025.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.1 kB
Release files / labx_py-2025.9.2.tar.gz
| Download URL | labx_py-2025.9.2.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9316a2d9cb8e342ed74596c29fb6d4400ee91732083c2c17dcf84fc6be86d50e
|
|
BLAKE2b-256 checksum How to use checksums |
8fce2345fc82ef10aa110bddec53190a976d0904983faef5e52fbc76d94cc27f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / labx_py-2025.9.2-py3-none-any.whl
| Download URL | labx_py-2025.9.2-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5694f3ce9bd2a77aa178126c82f11c44800b85644c99a9e4afb0c0be3fbf20d9
|
|
BLAKE2b-256 checksum How to use checksums |
f35daf58d0b30727ac0945437878c769ac8c58f70785015d4bb098f8a27fdc38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|