Skip to main content

SDK Python officiel pour GhostNexus — GPU cloud décentralisé, sécurisé & RGPD

Project description

GhostNexus Python SDK

Run Python scripts on GDPR-compliant GPU cloud — billed by the second.

PyPI version Python 3.9+ License: MIT

GhostNexus is a decentralized GPU compute network. Submit your Python script, our distributed GPUs run it — securely, in the EU, billed by the second.

  • RTX 4090 from $0.50/hr · A100 80GB from $2.20/hr · H100 from $3.50/hr
  • GDPR-compliant · EU-hosted · AI Act 2026 ready
  • Docker sandbox isolation · Per-second billing · No minimum deposit

Install

pip install ghostnexus

Quick Start

import ghostnexus

client = ghostnexus.Client(api_key="gn_live_...")

# Submit a script
job = client.run("train.py")

# Wait for result
result = job.wait()
print(result.output)
print(f"Cost: ${result.cost_credits:.4f}")

Get your API key at ghostnexus.net/dashboard — $15 free credits with code WELCOME15.

Examples

Fine-tune a model

import ghostnexus

client = ghostnexus.Client()  # reads GHOSTNEXUS_API_KEY env var

job = client.run("finetune_mistral.py", task_name="Mistral-7B LoRA fine-tune")
result = job.wait(timeout=7200)  # 2h max

print(result.output)
# Duration: 1h 23m
# Cost: $0.69

Inline script

job = client.run(
    "import torch; print(f'CUDA: {torch.cuda.is_available()}')",
    inline=True,
    task_name="cuda-check"
)
result = job.wait(timeout=30)
print(result.output)  # CUDA: True

Check balance

balance = client.balance()
print(f"Available credits: ${balance:.2f}")

Job history

jobs = client.history(limit=10)
for job in jobs:
    print(f"{job.task_name}: {job.status} — ${job.cost_credits:.4f}")

Error Handling

from ghostnexus.exceptions import InsufficientCreditsError, JobFailedError

try:
    job = client.run("train.py")
    result = job.wait()
except InsufficientCreditsError:
    print("Top up at https://ghostnexus.net/dashboard")
except JobFailedError as e:
    print(f"Job failed. Logs:\n{e.logs}")

Environment Variable

export GHOSTNEXUS_API_KEY="gn_live_..."
# No need to pass api_key= explicitly
client = ghostnexus.Client()

Pricing

GPU VRAM Price Best for
RTX 4070 12 GB $0.25/hr Inference, small models
RTX 4090 24 GB $0.50/hr Fine-tuning 7B–13B
RTX A6000 48 GB $0.70/hr Fine-tuning 30B–70B
A100 80GB 80 GB $2.20/hr Large-scale training
H100 80GB 80 GB $3.50/hr LLM pre-training

Billed per second — no hourly rounding, no minimum.

Links

License

MIT

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

ghostnexus-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

ghostnexus-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ghostnexus-0.1.0.tar.gz.

File metadata

  • Download URL: ghostnexus-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ghostnexus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cff85881bef206ebbb599b9b846e37368af1fa6f3ef8bf9f65fca5f0baf16c4f
MD5 36352ce0da94725fc0983202f3964bdd
BLAKE2b-256 7101d3c8546910871c07df2165d3417ba1aede8b9a57ee67fd08074d8bde3de3

See more details on using hashes here.

File details

Details for the file ghostnexus-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ghostnexus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ghostnexus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f033c35357b665276e76ebf19a88945763276f59fd98c918b0059506222a1fb
MD5 3eaf484d9566358b608ea8d949a73536
BLAKE2b-256 ba567177f75082b779de18a4c46cf446ab9cb7d17b609bf232119443ff9043f3

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