Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Python SDK usage for creating and managing sandboxes.
pip install stateset-sandbox
from stateset_sandbox import SandboxClient client = SandboxClient( base_url="https://api.sandbox.stateset.app", api_key="sk-sandbox-YOUR_API_KEY", org_id="org_YOUR_ORG_ID", )
sandbox = client.create(timeout_seconds=300) result = client.execute( sandbox_id=sandbox["sandbox_id"], command=["python3", "-c", "print('Hello from StateSet!')"], )
client.write_files( sandbox_id=sandbox["sandbox_id"], files=[{"path": "/workspace/hello.txt", "content": "SGVsbG8h", "encoding": "base64"}], ) file = client.read_files(sandbox_id=sandbox["sandbox_id"], paths=["/workspace/hello.txt"])
client.stop(sandbox_id=sandbox["sandbox_id"])