Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solari-sandbox 0.2.2
File Size Uploaded
solari_sandbox-0.2.2.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for solari-sandbox 0.2.2
File Interpreter ABI Platform
solari_sandbox-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / solari_sandbox-0.2.2.tar.gz

Download URL solari_sandbox-0.2.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cab4ffbcfbfa86f14514e2ad7df73feb404616afa6565a93682e5bd7cd1a29cd
BLAKE2b-256 checksum
How to use checksums
c8ebd9bca3d637cfae088ec7d304a5ff01f9a88dc990dd001f0a1ccf2e9ef92e
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.2-py3-none-any.whl

Download URL solari_sandbox-0.2.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccc9b5e4652cc477f1c9077b208f5ff0a15c32950889afeedce68b35a7ac79d9
BLAKE2b-256 checksum
How to use checksums
f2021b9de723c49bac9741882e4f26dd3104fb271a399da2dc4734073f4c922c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

0.2.3

2 release files

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page