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
Metadata
Release files for solari-sandbox 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| solari_sandbox-0.2.4.tar.gz | 8.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| solari_sandbox-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / solari_sandbox-0.2.4.tar.gz
| Download URL | solari_sandbox-0.2.4.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e67efb55e1b1c8423e8a5cbe0cc97d8d6c3f52141f889673f214d1a334ba846
|
|
BLAKE2b-256 checksum How to use checksums |
65373256e6f915ce8c57888c4f4cd0992d61bfca61b4ce71b133315f24bc322b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / solari_sandbox-0.2.4-py3-none-any.whl
| Download URL | solari_sandbox-0.2.4-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95c9d334b9559a95235d600e15c1eaa9b88058f113db857518def5aa94992090
|
|
BLAKE2b-256 checksum How to use checksums |
39bc1ce044842bcbfd434effda2430dcbd92193505b47bedef6ed9f345a35f96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for solari-sandbox 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.