{"id":24263,"library":"prime-sandboxes","title":"Prime Sandboxes","description":"Prime Intellect Sandboxes SDK for managing remote code execution environments. Current version 0.2.22, active development, weekly releases.","status":"active","version":"0.2.22","language":"python","source_language":"en","source_url":"https://github.com/PrimeIntellect-ai/prime-cli","tags":["sandbox","remote-execution","prime-intellect","sdk"],"install":[{"cmd":"pip install prime-sandboxes","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Wrong import path; Sandbox is exposed at top-level.","wrong":"from prime_sandboxes.sandbox import Sandbox","symbol":"Sandbox","correct":"from prime_sandboxes import Sandbox"}],"quickstart":{"code":"import os\nfrom prime_sandboxes import Sandbox\n\napi_key = os.environ.get('PRIME_API_KEY', 'your-api-key')\nsandbox = Sandbox(api_key=api_key)\nprint(sandbox)\n","lang":"python","description":"Initializes a Sandbox client using the PRIME_API_KEY environment variable."},"warnings":[{"fix":"Use sandbox as a context manager: with Sandbox(api_key='...') as sb: ...","message":"Sandbox objects must be closed explicitly to release remote resources. Failing to call sandbox.close() may leave dangling environments.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace Session with Sandbox. The API is identical.","message":"The prime_sandboxes.Session class is deprecated since v0.2.0. Use prime_sandboxes.Sandbox instead.","severity":"deprecated","affected_versions":">=0.2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: from prime_sandboxes import Sandbox","cause":"Incorrect import path – users try to import from a submodule that doesn't exist.","error":"ModuleNotFoundError: No module named 'prime_sandboxes.sandbox'"},{"fix":"Replace sandbox.run(command) with sandbox.execute(command).","cause":"The method 'run' was renamed to 'execute' in v0.2.10.","error":"AttributeError: 'Sandbox' object has no attribute 'run'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}