Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lium_sdk-0.2.11.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

lium_sdk-0.2.11-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file lium_sdk-0.2.11.tar.gz.

File metadata

  • Download URL: lium_sdk-0.2.11.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lium_sdk-0.2.11.tar.gz
Algorithm Hash digest
SHA256 264075085d3b42f672011bb9de1b35d69be4321675198c27eb4ae66f2d57579d
MD5 bc6c024c7b1a020f7f7befd74b5b6244
BLAKE2b-256 51d6673faa0ba24d53a61a76001744abb89bb6a65842faa5731947b1c092a590

See more details on using hashes here.

Provenance

The following attestation bundles were made for lium_sdk-0.2.11.tar.gz:

Publisher: release.yml on Datura-ai/lium-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lium_sdk-0.2.11-py3-none-any.whl.

File metadata

  • Download URL: lium_sdk-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lium_sdk-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 07643c8fcd6d3e930fbc5864f9d972b0dc0e3c1cb32bc88de0b050f7110b36bc
MD5 0d0f7b826a4fb2016b4d4d430baa4b00
BLAKE2b-256 0cf79c7bc090e3a287f21bf0fff560a2beecc73dad5b4f5651cd4e4b550349a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for lium_sdk-0.2.11-py3-none-any.whl:

Publisher: release.yml on Datura-ai/lium-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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