Skip to main content

CLI and SDK for JarvisLabs.ai GPU cloud

Project description

jarvislabs

CLI and Python SDK for managing JarvisLabs GPU instances.

Detailed docs are being revised. For now, use jl --help, jl run --help, and the examples below.

Installation

From source:

uv pip install -e .

As a package:

uv pip install jarvislabs

Authentication

jl login

Or set an env var:

export JL_API_KEY="<your_api_key>"

CLI Quick Start

Show top-level help and command groups:

jl --help
jl instance --help
jl scripts --help
jl filesystem --help

Common commands:

jl status
jl gpus
jl templates
jl instance list
jl scripts list
jl filesystem list

Instance lifecycle:

jl instance create --gpu A100 --storage 40 --name my-instance
jl instance pause <machine_id>
jl instance resume <machine_id>
jl instance destroy <machine_id>

Script and filesystem integration:

jl scripts add ./startup.sh --name setup-script
jl filesystem create --name data --storage 120
jl instance create --gpu A100 --script-id <script_id> --fs-id <fs_id>

SDK Quick Start

from jarvislabs import Client

with Client() as client:
    instances = client.instances.list()
    print([i.machine_id for i in instances])

Create an instance:

from jarvislabs import Client

with Client() as client:
    inst = client.instances.create(
        gpu_type="A100",
        num_gpus=1,
        template="pytorch",
        storage=40,
        name="my-instance",
    )
    print(inst.machine_id, inst.status)

Current Behavior Notes

  • Region is automatically resolved by the SDK/CLI.
  • create/resume are reserved-only (is_reserved=True).
  • CLI command naming uses list consistently (instance list, scripts list, filesystem list).

Development

uv run ruff format .
uv run ruff check --fix .
uv run pytest

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

jarvislabs-0.2.0b1.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

jarvislabs-0.2.0b1-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file jarvislabs-0.2.0b1.tar.gz.

File metadata

  • Download URL: jarvislabs-0.2.0b1.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jarvislabs-0.2.0b1.tar.gz
Algorithm Hash digest
SHA256 edff424e2f4679eefe3aeb3bc3ee5c2ae62ee557c1dfe99a4573d250093433f2
MD5 3176e5aee58ff2dcf4256c9336d611ee
BLAKE2b-256 9ed8fb8e5a74d1dcf349148f65a32d8b82ce14490344bd36c5d67ccc3d738663

See more details on using hashes here.

File details

Details for the file jarvislabs-0.2.0b1-py3-none-any.whl.

File metadata

  • Download URL: jarvislabs-0.2.0b1-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jarvislabs-0.2.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 19b04ea02eab31bf13694ee3006313eee4cd5f10f3489d62a3c7bbd0a2150e72
MD5 76cba4f69eb27b3e6a5a5ed5f3bb925e
BLAKE2b-256 1bea849aa7a2ca4b9dbf112f30b7f78d8f378bc94f7326aa1f4f3c95fb70c8c4

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