Skip to main content

miosa-sandbox

miosa-sandbox is the compatibility package for applications that still import miosa_sandbox. It delegates sandbox, computer, transport, error, and response behavior to the canonical miosa Python SDK.

New applications should install and import miosa directly.

Install

pip install miosa-sandbox

Version 0.2.0 requires the canonical miosa==1.3.5 package.

Compatibility API

from miosa_sandbox import MIOSA

with MIOSA(api_key="msk_...") as client:
    with client.sandboxes.create() as sandbox:
        result = sandbox.exec("python3 -c 'print(1 + 1)'")
        print(result.stdout)

MIOSA and AsyncMIOSA preserve the legacy class names. Returned handles are the canonical miosa.resources.sandboxes.Sandbox and AsyncSandbox classes. All sandbox execution, file, lifecycle, usage, and response decoding behavior therefore comes from miosa.

When no size or exact resource tuple is supplied, this compatibility package requests the canonical small sandbox contract. The small contract is 2 vCPU, 4096 MiB memory, and 10240 MiB disk.

Canonical ownership selectors can be passed directly:

sandbox = client.sandboxes.create(
    workspace_id="workspace_123",
    project_id="project_123",
    external_user_id="customer_123",
)

Ownership fields, size, resource_contract, and usage() are exposed on sync and async sandbox handles.

Migration

Replace miosa-sandbox with miosa and rename the client imports when convenient:

from miosa import AsyncMiosa, Miosa

The canonical SDK documentation is at https://miosa.ai/docs/sdks/python.

License

MIT

Download files

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

Source Distribution

miosa_sandbox-0.2.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

miosa_sandbox-0.2.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file miosa_sandbox-0.2.1.tar.gz.

File metadata

  • Download URL: miosa_sandbox-0.2.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.11

File hashes

Hashes for miosa_sandbox-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f68a369fb67ff432675192dc5fa43653d196f2103e6f26b719dea2f925de2eb1
MD5 46d7903dd63fa9d57e1ea90d23ea0f94
BLAKE2b-256 fb8c42da160f25b949976cf62a92182513322fc434817f715a52cf9c73c6c1d2

See more details on using hashes here.

File details

Details for the file miosa_sandbox-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: miosa_sandbox-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.11

File hashes

Hashes for miosa_sandbox-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eef4a4dc663311d997ba85486facf40410dab1d7d903b2a7daf5e988fd0077db
MD5 fa67f22163f78c7d748aed1d630f09b9
BLAKE2b-256 82f478da622b59e6aae25806b6a805def1753917521449c542bc61ac130faf0a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 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