Skip to main content

A client library for accessing Lambda Cloud API

Project description

Lambda Cloud API - CLI

This project is a wrapper around the Lambda Cloud API with some additional Quality-of-Life additions. The documentation of the API can be found here: https://docs-api.lambda.ai/api/cloud

Installation

uv pip install lambda-ai-cloud-api-client

Usage

  1. Set up an API token and environment.

In your lambda.ai account go to https://cloud.lambda.ai/api-keys/cloud-api and generate a new Cloud AI Key. Set this token as an environment variable in the terminal you've installed this project.

export LAMBDA_CLOUD_API_TOKEN=<your-token>

The project also accepts LAMBDA_CLOUD_TOKEN and LAMBDA_API_TOKEN if you prefer that naming. Optionally you can set the api base url, LAMBDA_CLOUD_BASE_URL, the default is https://cloud.lambdalabs.com .

  1. Using the CLI

To save on keystrokes I've named the command lai for lambda.ai. To see all available commands use:

lai --help

Overview of features

  • List instances: lai ls
  • Get instance details: lai get <instance-id>
  • Start an instance: lai start --region us-east-1 --instance-type gpu_1x_a10 --ssh-key my-key --name demo
  • Stop instances: lai stop <id-1> <id-2>
  • Restart instances: lai restart <id-1> <id-2>
  • Rename an instance: lai rename <instance-id> new-name
  • List instance types: lai types --available --cheapest --region us-east-1
    • --available shows only those instance types that are currently available
    • --cheapest finds the instance-type that is currently the cheapest $ per hour.
  • List available images: lai images --region us-east-1
  • List SSH keys: lai keys

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

lambda_ai_cloud_api_client-2.0.0.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

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

lambda_ai_cloud_api_client-2.0.0-py3-none-any.whl (181.9 kB view details)

Uploaded Python 3

File details

Details for the file lambda_ai_cloud_api_client-2.0.0.tar.gz.

File metadata

File hashes

Hashes for lambda_ai_cloud_api_client-2.0.0.tar.gz
Algorithm Hash digest
SHA256 9948ba321f4e30603f66d5f2566679c6d1108b5ffcfa7d963703e734d5a9d3d4
MD5 3ecf94b986f9665a1f793d895e4bf4f2
BLAKE2b-256 cf7650ddea80a5e5212a4d5936962742048a2344ca0d4d5342ff19741385a326

See more details on using hashes here.

Provenance

The following attestation bundles were made for lambda_ai_cloud_api_client-2.0.0.tar.gz:

Publisher: ci.yml on alexandervaneck/lambda-ai-cloud-api-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lambda_ai_cloud_api_client-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lambda_ai_cloud_api_client-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bba811618530ea78b306e97dcb4093e56a8a920bea6d6522582fddb6f657b110
MD5 12ad7d02e6a461e5574f54e6c2bcd7b8
BLAKE2b-256 40eb4e600dadbda79cde97215d5f47afde5a03d101a1a532d8418096802cc65e

See more details on using hashes here.

Provenance

The following attestation bundles were made for lambda_ai_cloud_api_client-2.0.0-py3-none-any.whl:

Publisher: ci.yml on alexandervaneck/lambda-ai-cloud-api-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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