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.0.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.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for miosa_sandbox-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a6dd186ab7de9751cf5cca731715967597a2d8dc9650d26b0760f720dbc1e9ed
MD5 5c0be2d6a12484490db3c773698a4291
BLAKE2b-256 7224f72e61fdde1bf26b4236fcdad73c9c4edd5bbcbcec17b11f9c57925b76ae

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for miosa_sandbox-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 baf959aeeef7dd7d1aa79a61fcb1191fc256083024e32d6e9db51f682dfdca51
MD5 6bafc5b70a8f2a3b1ff00ae788ce0c0c
BLAKE2b-256 bccdb4b777aeeeb8b2dc20ab752d9722e8bc146068906de65cc97c7ed57b6598

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

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