A Python SDK for Lium API.
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
Lium SDK
A Python SDK for GPU pod management on the Lium platform.
Table of Contents
Installation
pip install lium-sdk
Usage
from lium_sdk import Lium
# Initialize client (reads API key from LIUM_API_KEY env or ~/.lium/config.ini)
lium = Lium()
# List available executors
executors = lium.ls()
for executor in executors[:5]:
print(f"{executor.huid}: {executor.gpu_count}x{executor.gpu_type} @ ${executor.price_per_hour}/h")
# Create a pod
executor = executors[0]
pod_info = lium.up(executor_id=executor.id, pod_name="my-pod")
# List active pods
pods = lium.ps()
for pod in pods:
print(f"{pod.name}: {pod.status}")
# Execute command on pod
result = lium.exec(pod="my-pod", command="nvidia-smi")
print(result["stdout"])
# SSH into pod
ssh_cmd = lium.ssh("my-pod")
print(f"SSH command: {ssh_cmd}")
# Stop pod
lium.down("my-pod")
Development
To set up the development environment, clone the repository and install the dependencies:
git clone https://github.com/your-username/lium-sdk.git
cd lium-sdk
pip install -e .
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Changelog
All notable changes to this project will be documented in the CHANGELOG.md file.
Support
If you have any issues or questions, please open an issue on GitHub.
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 lium_sdk-0.2.10.tar.gz.
File metadata
- Download URL: lium_sdk-0.2.10.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f40fc40080dbba55a8655bf0be1a49fd94e6383dc38fcf23b2676b134244b2d
|
|
| MD5 |
a90bdf92e32d6f1a6cf347eb1b10391e
|
|
| BLAKE2b-256 |
3e0f8c97e133cb811c76d42f4766c646e19472c8d3258896a8f45cba9a014ecc
|
Provenance
The following attestation bundles were made for lium_sdk-0.2.10.tar.gz:
Publisher:
release.yml on Datura-ai/lium-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lium_sdk-0.2.10.tar.gz -
Subject digest:
0f40fc40080dbba55a8655bf0be1a49fd94e6383dc38fcf23b2676b134244b2d - Sigstore transparency entry: 626571019
- Sigstore integration time:
-
Permalink:
Datura-ai/lium-sdk@a8e8fac58f628ad6ff71df748ad69022cfa61dd8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Datura-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a8e8fac58f628ad6ff71df748ad69022cfa61dd8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file lium_sdk-0.2.10-py3-none-any.whl.
File metadata
- Download URL: lium_sdk-0.2.10-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
befcfb6864ea275a51f2491c7b0e0e7f2bd5bddd6a65c99f70e9205ebad2e2ca
|
|
| MD5 |
b865d02b7f268aa79b8591b6ec4f2fc8
|
|
| BLAKE2b-256 |
a61139fabf2fc5cc874a0bb95788f933f3ed226db40c378673b060a33f64cc3a
|
Provenance
The following attestation bundles were made for lium_sdk-0.2.10-py3-none-any.whl:
Publisher:
release.yml on Datura-ai/lium-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lium_sdk-0.2.10-py3-none-any.whl -
Subject digest:
befcfb6864ea275a51f2491c7b0e0e7f2bd5bddd6a65c99f70e9205ebad2e2ca - Sigstore transparency entry: 626571033
- Sigstore integration time:
-
Permalink:
Datura-ai/lium-sdk@a8e8fac58f628ad6ff71df748ad69022cfa61dd8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Datura-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a8e8fac58f628ad6ff71df748ad69022cfa61dd8 -
Trigger Event:
workflow_dispatch
-
Statement type: