Skip to main content

numen-sandbox-py

Python client for the Numen sandbox API. 0.x beta. The API can change between minor versions.

Install

pip install numen-sandbox-py

Credentials

The SDK reads ~/.config/numen/credentials.json.

Create and run

image is required. numen/base is the general platform image.

from numen_sandbox_py import Sandbox

with Sandbox.create(image="numen/base") as sb:
    print(sb.run(["python", "-c", "print(2+2)"]).stdout)

The with block destroys the sandbox on exit.

If create is out of memory, catch CapacityError. The message is capacity exceeded: mem. Retry again in 5 minutes. Retry that error only. Other capacity exceeded reasons are unchanged.

Errors

Catch FileNotFoundError and the other named classes. str(err) is the sentence. sandbox_id, path, op, op_index, and request_id are attributes. SandboxError is only the catch-all. Set NUMEN_RPC_LOG=1 or Client(..., debug=True) to log them.

Metadata

Release files for numen-sandbox-py 0.18.0

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

Source distribution (sdist)

Source distribution for numen-sandbox-py 0.18.0
File Size Uploaded Provenance
numen_sandbox_py-0.18.0.tar.gz 83.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for numen-sandbox-py 0.18.0
File Interpreter ABI Platform
numen_sandbox_py-0.18.0-py3-none-any.whl Python 3 none any Details

Total release size: 172.3 kB

Release files / numen_sandbox_py-0.18.0.tar.gz

Download URL numen_sandbox_py-0.18.0.tar.gz
Size 83.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8f53347e5a6fd8a2a0004976c1fa98832a9217d94d3b39ca6334a26eab24b27f
BLAKE2b-256 checksum
How to use checksums
9a2afa9d60f724e321e83c40b3f135a4587bb8777ac629e4f0468011d36db34a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / numen_sandbox_py-0.18.0-py3-none-any.whl

Download URL numen_sandbox_py-0.18.0-py3-none-any.whl
Size 89.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8c096f3d18c97d237d52765be5e3971632bb73a952e5762815ab53b6bea240d
BLAKE2b-256 checksum
How to use checksums
aa84e09da1d7a56b975d61c136a1cc303753d93771709b5f61828b30442677f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for numen-sandbox-py 0.18.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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