UCloud Sandbox SDK - Cloud sandbox environments for AI agents
Project description
UCloud Sandbox Python SDK
UCloud Sandbox Python SDK 提供云端沙箱环境,用于安全运行 AI 生成的代码。
安装
pip install ucloud_sandbox
快速开始
1. 获取 API Key
- 访问 UCloud Sandbox 注册账号
- 在控制台获取 API Key
- 设置环境变量:
export UCLOUD_SANDBOX_API_KEY=your_api_key
2. 运行代码
from ucloud_sandbox import Sandbox
with Sandbox.create() as sandbox:
sandbox.run_code("x = 1")
execution = sandbox.run_code("x += 1; x")
print(execution.text) # 输出: 2
文档
TODO 访问 Sandbox 文档 获取更多信息。
致谢
本项目基于 E2B 开源项目开发,感谢 E2B 团队的贡献。
许可证
MIT License - 详见 LICENSE 文件
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ucloud_sandbox-1.0.0.tar.gz
(93.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ucloud_sandbox-1.0.0.tar.gz.
File metadata
- Download URL: ucloud_sandbox-1.0.0.tar.gz
- Upload date:
- Size: 93.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ab2510dc94339c0cd24bd0039439da90aeb630437541f81ccf315e36345cb41
|
|
| MD5 |
92ac361390b382c1da191d8034902ff9
|
|
| BLAKE2b-256 |
8688eca67a98c9dff6b529d584fbbd7d309e48caddd25d9f56f8b1502b73636c
|
File details
Details for the file ucloud_sandbox-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ucloud_sandbox-1.0.0-py3-none-any.whl
- Upload date:
- Size: 189.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a41bfdd42ebd1914f9f1b768451e118ddb19b15ac1423ae7a3028c4faae30b9
|
|
| MD5 |
383ce5a3b5c46d3e02cd8699d79a45cf
|
|
| BLAKE2b-256 |
9a66b3e2157aa15a339cfb6be787df80c38bb251175d6666af4ecdaf46d22c1e
|