Skip to content

jxtngx/lambda-cloud-python

Repository files navigation

Lambda Cloud Python

A simple Python client for the Lambda Cloud API, built with httpx.

Note

This library is not an official Lambda Labs project

Note

This library is developed alongside GitHub Copilot and various AI models by OpenAI and Anthropic

Installation

Installation via PyPI

pip install lambda-cloud-python

Installation from source

git clone https://github.com/jxtngx/lambda-cloud-python.git
cd lambda-cloud-python
pip install -e .

Usage

Note

see docs for more examples

The Lambda Cloud Python client provides the following functionality:

Instances

  • instances.list() - Get all instances for the account
  • instances.get(instance_id) - Get details for a specific instance
  • instances.update(instance_id, ...) - Update details of a specific instance
  • instances.launch(...) - Launch one or more new instances
  • instances.restart(instance_ids) - Start one or more instances
  • instances.terminate(instance_ids) - Terminate one or more instances

Instance Types

  • instance_types.list() - Get available instance types and their specifications

SSH Keys

  • ssh_keys.list() - Get all SSH keys for the account
  • ssh_keys.add(name, public_key) - Add a new SSH key
  • ssh_keys.delete(name) - Delete an SSH key

File Systems

  • file_systems.list() - Get all file systems for the account
  • file_systems.create(...) - Create a new file system
  • file_systems.delete(name) - Delete a file system

Images

  • images.list() - List available machine images

Releases

No releases published

Languages