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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6dd186ab7de9751cf5cca731715967597a2d8dc9650d26b0760f720dbc1e9ed
|
|
| MD5 |
5c0be2d6a12484490db3c773698a4291
|
|
| BLAKE2b-256 |
7224f72e61fdde1bf26b4236fcdad73c9c4edd5bbcbcec17b11f9c57925b76ae
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baf959aeeef7dd7d1aa79a61fcb1191fc256083024e32d6e9db51f682dfdca51
|
|
| MD5 |
6bafc5b70a8f2a3b1ff00ae788ce0c0c
|
|
| BLAKE2b-256 |
bccdb4b777aeeeb8b2dc20ab752d9722e8bc146068906de65cc97c7ed57b6598
|