Current collected state Current
Observed since 20 Oct, 23:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python SDK for the All-in-One Sandbox API, >=1.7.0
A Python SDK for the All-in-One Sandbox API, providing access to sandbox, shell, file, jupyter, nodejs, and mcp services.
pip install agent-sandbox
from agent_sandbox import Sandbox
client = Sandbox(base_url="http://localhost:8091")
ctx = client.sandbox.get_context()
print(ctx)
result = client.shell.exec_command(command="ls -la")
print(result)
The SDK also provides async support through the AsyncSandbox class:
import asyncio
from agent_sandbox import AsyncSandbox
async def main():
client = AsyncSandbox(base_url="http://localhost:8091")
# Get sandbox context
ctx = await client.sandbox.get_context()
print(ctx)
result = await client.shell.exec_command(command="ls -la")
print(result)
asyncio.run(main())
Create a sandbox instance using the Volcengine provider. For more details, please refer to examples/provider_volcengine.py.
from __future__ import print_function
import os
import sys
# Add the parent directory to Python path so we can import agent_sandbox
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from agent_sandbox.providers import VolcengineProvider
def main():
"""
Main function demonstrating Volcengine provider usage.
"""
# Configuration - replace with your actual credentials
access_key = os.getenv("VOLC_ACCESSKEY")
secret_key = os.getenv("VOLC_SECRETKEY")
region = os.getenv("VOLCENGINE_REGION", "cn-beijing")
# Initialize the Volcengine provider
provider = VolcengineProvider(
access_key=access_key,
secret_key=secret_key,
region=region
)
print("=== Volcengine Sandbox Provider Example ===\n")
function_id = "yatoczqh"
print("1. Creating a sandbox...")
sandbox_id = provider.create_sandbox(function_id=function_id)
print(f"Create response: {sandbox_id}")
if __name__ == "__main__":
main()
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.30 | 24 Mar 2026 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ceec70fd65e55f9c99827b15cb439d697fce4add85b5102b629f1dc6433f648d