Skip to main content

Unofficial CLI to manage Lambdalabs Cloud resources such as: instances, ssh keys

Project description

lamblbs

Unofficial Lambdalabs CLI

⚡ Minimalistic CLI to manage your Lambdalabs Cloud instances ⚡


Introduction

This is a personal project that helped me automate the provisioning and deprovisioning of Lambdalabs Cloud instances while I was playing with Ray on-prem clusters. I thought it might be useful for others and decided to share it for anyone to use it. This CLI is leveraging the Lambdalabs API, but it is by no means endorsed by or associated with the Lambdalabs company.

Pre-requisites

Configure your Lambdalabs API key using

export LAMBDALABS_API_KEY=....

Installation

pip install lamblbs

Usage

List instance types

lamblbs instance types

List running instances

lamblbs instance show-all

Launch a new instance

lamblbs instance launch \
--name ray-head-node \
--type gpu_1x_a10 \
--region us-west-1 \
--ssh_key lambdalabs-ssh-ray \
--qty 1

NOTE: This assumes you've created the lambdalabs-ssh-ray before hand.

Check and wait for your instances to be active

lamblbs instance check-status --status active

There are other supported commands as well which can be displayed using:

lamblbs --help

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

lamblbs-2024.2a0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

lamblbs-2024.2a0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file lamblbs-2024.2a0.tar.gz.

File metadata

  • Download URL: lamblbs-2024.2a0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for lamblbs-2024.2a0.tar.gz
Algorithm Hash digest
SHA256 abbc16755922c0c99787fe4f1921b6ef1465ae39fe84d9b3018c561011310ba3
MD5 195adb486d2d8150d9abb3ef830538ff
BLAKE2b-256 baa7ff9cae7df2fa2aea5726d0c5b9f46d26a6754d70f68221189fdb618fc54b

See more details on using hashes here.

File details

Details for the file lamblbs-2024.2a0-py3-none-any.whl.

File metadata

  • Download URL: lamblbs-2024.2a0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for lamblbs-2024.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 822943bf878d777d2f8484c6f2eeb985bbdf86be7ee9fa605f768997006ee1cf
MD5 8bfb06b2be88a8076aefee11bd893c29
BLAKE2b-256 bee947364d182f1cff77d7ce2e78a69445595b2710375b98f18cbfa886873a3f

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