praisonai-sandbox
Isolated agent code execution for PraisonAI — Docker, subprocess, E2B, Modal, Novita, Sandlock, and SSH backends.
Install
pip install praisonai-sandbox[docker]
Usage
from praisonai_sandbox import DockerSandbox
from praisonaiagents.sandbox import SandboxConfig
config = SandboxConfig.docker("python:3.12-slim")
sandbox = DockerSandbox(image=config.image, config=config)
Or via the agents manager:
from praisonaiagents.sandbox import SandboxManager, SandboxConfig
manager = SandboxManager(SandboxConfig.subprocess())
result = await manager.run_code("print('hello')")
Console script
praisonai-sandbox --help
Backward-compatible imports via the umbrella package:
from praisonai.sandbox import SubprocessSandbox # shim → praisonai_sandbox
Validating your install
Note: The
e2e-validation/bundle andtests/ship with the source repository, not the published wheel. Run these commands from a checkout of this repo (src/praisonai-sandbox/), not from apip installed environment.
Run the single-command end-to-end smoke suite (no API keys needed for the subprocess path; Docker is optional and skipped when unavailable):
python e2e-validation/run_e2e.py
Or use the pytest live probes:
python -m pytest tests/test_live_sandbox.py -v
See e2e-validation/ for the manual guide.
Metadata
Release files for praisonai-sandbox 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| praisonai_sandbox-0.1.9.tar.gz | 82.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| praisonai_sandbox-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 159.7 kB
Release files / praisonai_sandbox-0.1.9.tar.gz
| Download URL | praisonai_sandbox-0.1.9.tar.gz |
|---|---|
| Size | 82.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3e86b3d4fb0f0c5bf9ea3cf599ab14bd851af9aa34c2985c6ebf1aef7a8c70a
|
|
BLAKE2b-256 checksum How to use checksums |
1043b699afa9850a1e001ebca3e44743ad12ba22a4b0649cb3b84234c55939c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / praisonai_sandbox-0.1.9-py3-none-any.whl
| Download URL | praisonai_sandbox-0.1.9-py3-none-any.whl |
|---|---|
| Size | 77.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4491f65417d7c20db61f7f220908523f3f093609b7969dabd3831cac5fa51132
|
|
BLAKE2b-256 checksum How to use checksums |
2f0b69acfa263f44b6321bdd7e70e67a1f0c9960f8a0c86416127866644e5cbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|