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
Installation from source
Usage
[!NOTE] see docs for more examples
The Lambda Cloud Python client provides the following functionality:
Instances
instances.list()- Get all instances for the accountinstances.get(instance_id)- Get details for a specific instanceinstances.update(instance_id, ...)- Update details of a specific instanceinstances.launch(...)- Launch one or more new instancesinstances.restart(instance_ids)- Start one or more instancesinstances.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 accountssh_keys.add(name, public_key)- Add a new SSH keyssh_keys.delete(name)- Delete an SSH key
File Systems
file_systems.list()- Get all file systems for the accountfile_systems.create(...)- Create a new file systemfile_systems.delete(name)- Delete a file system
Images
images.list()- List available machine images