Follow the steps below to easily create a sandbox.

Prerequisites

Create an API Key

Create an API Key from this URL https://console.excloud.dev/console/api-keys

  1. Open console.excloud.dev/console/api-keys.
  2. Click Create API Key.
  3. Copy the secret once and pass it to the SDK as api_key.
API keys in the Excloud console

Installation

pip install excloud

Quick Start

from excloud import Client

# Initialize client with your API key
client = Client(api_key="your_api_key_here")

# Create a sandbox
sandbox = client.create()
print(f"Sandbox created: {sandbox.name}")

# Execute commands in the sandbox
result = sandbox.run("python --version")
print(result)

# Clean up
sandbox.destroy()