Documentation

Getting Started

API Reference

Examples

DocumentationQuick Start

Welcome to EV2D

Get started with EV2D in under 5 minutes. Create your first sandbox and start coding in the cloud.

1. Install the SDK

pip install EV2D

2. Create Your First Sandbox

quickstart.py
from EV2D import Sandbox

# Initialize with your API key
sb = Sandbox(api_key="your-api-key")

# Create a new sandbox
sandbox = sb.create_sandbox(
    name="my-first-sandbox",
    template="python",
    resources={
        "memory": "1GB",
        "cpus": "1"
    }
)

print(f"Sandbox ready: {sandbox.url}")
print(f"Status: {sandbox.status}")

3. Run Commands

execute.py
# Execute commands in your sandbox
with sb("my-first-sandbox") as env:
    # Install packages
    env.run_command("pip install requests numpy")
    
    # Run your code
    result = env.run_command("python app.py")
    print(result.stdout)
    
    # Upload files
    env.upload_file("data.csv", "./local-data.csv")

# Sandbox automatically closes when done
Last updated: December 2024