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.

TypeScript parity

Public Sandbox and Client methods stay 1:1 with @keska/numen-sandbox. Only casing, sync versus async, and TypeScript AbortSignal differ. New methods ship on Python sync, Python async, and TypeScript together. Portal-only RPCs such as log archives are not part of that contract.

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.21.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.21.0
File Size Uploaded Provenance
numen_sandbox_py-0.21.0.tar.gz 82.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 172.4 kB

Release files / numen_sandbox_py-0.21.0.tar.gz

Download URL numen_sandbox_py-0.21.0.tar.gz
Size 82.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2c886b01015e26b55897807f51bd25bb510a7cd04ef4518304ee4a702caee15f
BLAKE2b-256 checksum
How to use checksums
d0e5ccd58b7b74b3f6009f870b6ef8787885495783d49cfbfbdbea1f107a5162
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.21.0-py3-none-any.whl

Download URL numen_sandbox_py-0.21.0-py3-none-any.whl
Size 89.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b33c014c9aa84320da2f7d9b0ac6364a14490889f284c3565081d3197d931ad
BLAKE2b-256 checksum
How to use checksums
6a6f13dd5ff62d6bd675a4b111499469851bcc417b964f576de7159915a996b4
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.21.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