solari-sandbox (Python)
Python SDK for Solari Sandboxes — fast, ephemeral code sandboxes (micro-VMs)
with a code interpreter, filesystem, ports, and git. Mirrors the TypeScript
@solarisdk/sandbox package.
Install
pip install solari-sandbox
Quickstart
import asyncio, os
from solari_sandbox import SandboxClient
async def main():
client = SandboxClient(api_key=os.environ["SOLARI_API_KEY"])
sb = await client.create(template="base")
await sb.connect()
result = await sb.run_code("print(6 * 7)")
print(result.stdout) # -> 42
await sb.kill()
asyncio.run(main())
SandboxClient(...) accepts api_key, base_url (default
https://api.getsolari.com), and call_timeout_ms. The same slr_live_… key
authenticates against both the browser and desktop/sandbox APIs.
Docs: https://getsolari.com
Release files for solari-sandbox 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| solari_sandbox-0.2.3.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| solari_sandbox-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / solari_sandbox-0.2.3.tar.gz
| Download URL | solari_sandbox-0.2.3.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05a40607babf76135f2e5913fb883fb492318fd804c739b2de3327efbe78bfaa
|
|
BLAKE2b-256 checksum How to use checksums |
5a0978d53c458622c51e1837a9d0375d2366880edadece8f65f81e00c4b7ca38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / solari_sandbox-0.2.3-py3-none-any.whl
| Download URL | solari_sandbox-0.2.3-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f13771703051e611fb50aa13980266e8fd5ced496f005297045784501bf7ee5f
|
|
BLAKE2b-256 checksum How to use checksums |
033e84d9ecc5d40a81949a407bf441d97aeaa3de5f465a1cc880350606dadb74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|