SDK
Sandbox
Create and manage sandboxes using the Python SDK.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create and manage sandboxes using the Python SDK.
from jhansi import Sandbox
sb = Sandbox(language="python")
sb.create()
sb.upload_file("main.py")
cd my_project && zip -r ../my_project.zip .
sb.upload_zip("my_project.zip")
result = sb.exec("python main.py")
print(result)
result = sb.exec("python main.py", test=True)
print(result)
status = sb.status()
print(status["status"])
sb.delete()