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
pip install lambda-cloud-python
git clone https://github.com/jxtngx/lambda-cloud-python.git
cd lambda-cloud-python
pip install -e .
Note
see docs for more examples
The Lambda Cloud Python client provides the following functionality:
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.list()
- Get available instance types and their specifications
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.list()
- Get all file systems for the accountfile_systems.create(...)
- Create a new file systemfile_systems.delete(name)
- Delete a file system
images.list()
- List available machine images