Registry / aws / prime-sandboxes

prime-sandboxes

JSON →
library0.2.27pypypi✓ verified 88d ago

Prime Intellect Sandboxes SDK for managing remote code execution environments. Current version 0.2.22, active development, weekly releases.

pip install prime-sandboxes
INSTALL
IMPORT
SIG · PRIME-SANDBOXES
P
prime-sandboxes
awspythonv0.2.27
Install
4.4s avg
Import
1055ms
Disk
48MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.2.27 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 5.5s
py 3.11
✓ —
✓ 4.5s
py 3.12
✓ —
✓ 3.8s
py 3.13
✓ —
✓ 3.8s
py 3.9
✕ build_error
✕ build_error
48MB installed
● package 48MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sandbox
✓ from prime_sandboxes import Sandbox
✗ from prime_sandboxes.sandbox import Sandbox
Wrong import path; Sandbox is exposed at top-level.

Initializes a Sandbox client using the PRIME_API_KEY environment variable.

import os from prime_sandboxes import Sandbox api_key = os.environ.get('PRIME_API_KEY', 'your-api-key') sandbox = Sandbox(api_key=api_key) print(sandbox)
Debug
Known issues
gotchaSandbox objects must be closed explicitly to release remote resources. Failing to call sandbox.close() may leave dangling environments.
fix
Use sandbox as a context manager: with Sandbox(api_key='...') as sb: ...
affects: all
deprecatedThe prime_sandboxes.Session class is deprecated since v0.2.0. Use prime_sandboxes.Sandbox instead.
fix
Replace Session with Sandbox. The API is identical.
affects: >=0.2.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'prime_sandboxes.sandbox'
Incorrect import path – users try to import from a submodule that doesn't exist.
fix
Use: from prime_sandboxes import Sandbox
AttributeError: 'Sandbox' object has no attribute 'run'
The method 'run' was renamed to 'execute' in v0.2.10.
fix
Replace sandbox.run(command) with sandbox.execute(command).
Upgrade
Version history
0.2.27latest on PyPI · released Jun 5, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Amazon
1
Resources
prime-sandboxes — pip install prime-sandboxes · libregistry