Python SDK for LeaderGPU Public API
Project description
Unofficial LeaderGPU Python SDK
A Python library for interacting with the LeaderGPU Public API
Getting Started
- Install with pip:
pip install leadergpu-python
- Set the
LEADERGPU_CLIENT_ID(Email) andLEADERGPU_AUTH_TOKEN(password) from environment variable
export LEADERGPU_CLIENT_ID="username@mail.org"
export LEADERGPU_AUTH_TOKEN="XXXXXX"
- Example for showing avilable server:
import os
from leadergpu import LeaderGPUClient
CLIENT_ID = os.environ['LEADERGPU_CLIENT_ID']
CLIENT_SECRET = os.environ['LEADERGPU_AUTH_TOKEN']
# Create LeaderGPU client
leadergpu = LeaderGPUClient(CLIENT_ID, CLIENT_SECRET)
servers = leadergpu.servers.get()
for server in servers:
print(server)
print("---------------")
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 leadergpu-python-0.1.2.tar.gz.
File metadata
- Download URL: leadergpu-python-0.1.2.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ac1d60de02c27eed337dd1032f05757d447a798b633e970a6335cf2b48bdc32
|
|
| MD5 |
cf12bc74b3c73642baf40c31adba3830
|
|
| BLAKE2b-256 |
48b0a78bbc7d14883ddbe3f241c9c8e90c76378f428415add713a3d72a2969a7
|
File details
Details for the file leadergpu_python-0.1.2-py3-none-any.whl.
File metadata
- Download URL: leadergpu_python-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b0511ecfc9e98470ed5cc872409580822e2bff564bbc8bc43bb6fa9e3e157b0
|
|
| MD5 |
e10f4c35999223559fc4417ce939b893
|
|
| BLAKE2b-256 |
dcaecc13f98f34e731784f89f8ee46219a55637f456397dacf34eae460759442
|