Skip to main content

Python SDK for Mosaic Sandbox (MAR)

Project description

Mosaic Sandbox Python SDK

mosaic-sandbox is the Python SDK and CLI for Mosaic Sandbox, a Firecracker-based runtime for coding agents.

Install:

python -m pip install mosaic-sandbox

Set your endpoint and API token:

export MAR_ENDPOINT=https://sandbox.mosaicos.com
export MAR_API_TOKEN=msk_live_...

Run the CLI smoke test:

mar doctor
mar run --template node-20 node -v

Python example:

from mosaic_sandbox import Sandbox

sbx = Sandbox.create(
    template="node-20",
    endpoint="https://sandbox.mosaicos.com",
    api_token="msk_live_..."
)

try:
    result = sbx.run_command("node -v")
    print(result.stdout)
    print(result.tti_ms)
finally:
    sbx.destroy()

Docs: https://sandbox.mosaicos.com/docs/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mosaic_sandbox-0.1.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mosaic_sandbox-0.1.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file mosaic_sandbox-0.1.0.tar.gz.

File metadata

  • Download URL: mosaic_sandbox-0.1.0.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for mosaic_sandbox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d7435da3cce830f35c0d24dfd0f0fc26c1a839e4e96b3bef195691393b5f3db2
MD5 c9e24bf3deedf5c69d9e012a492058e9
BLAKE2b-256 d234e57823d87c4dc04014eb18b50e262b1a559066cc1f59551b56c54ca4b391

See more details on using hashes here.

File details

Details for the file mosaic_sandbox-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mosaic_sandbox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for mosaic_sandbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a94a9cdb791c5b18a6b2435b0f2ccd8d57ff36b7071d1ec1215c230d38a40c6
MD5 7d92bdc988a1dee75c5bace72975d9f8
BLAKE2b-256 d9c89251f3f2c604650e2b4ec79a79f4fce10b59f97d69fc1713fddca061a013

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page