Skip to main content

Python SDK for LeaderGPU Public API

Project description

Unofficial LeaderGPU Python SDK

A Python library for interacting with the LeaderGPU Public API

Getting Started

  1. Install with pip:

pip install leadergpu-python

  1. Set the LEADERGPU_CLIENT_ID (Email) and LEADERGPU_AUTH_TOKEN (password) from environment variable
export LEADERGPU_CLIENT_ID="username@mail.org"
export LEADERGPU_AUTH_TOKEN="XXXXXX"
  1. 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


Download files

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

Source Distribution

leadergpu-python-0.1.2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

leadergpu_python-0.1.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

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

Hashes for leadergpu-python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2ac1d60de02c27eed337dd1032f05757d447a798b633e970a6335cf2b48bdc32
MD5 cf12bc74b3c73642baf40c31adba3830
BLAKE2b-256 48b0a78bbc7d14883ddbe3f241c9c8e90c76378f428415add713a3d72a2969a7

See more details on using hashes here.

File details

Details for the file leadergpu_python-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for leadergpu_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b0511ecfc9e98470ed5cc872409580822e2bff564bbc8bc43bb6fa9e3e157b0
MD5 e10f4c35999223559fc4417ce939b893
BLAKE2b-256 dcaecc13f98f34e731784f89f8ee46219a55637f456397dacf34eae460759442

See more details on using hashes here.

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