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.20.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.20.0
File Size Uploaded Provenance
numen_sandbox_py-0.20.0.tar.gz 87.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 182.1 kB

Release files / numen_sandbox_py-0.20.0.tar.gz

Download URL numen_sandbox_py-0.20.0.tar.gz
Size 87.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8468017c9c972629ddfd810914faa69b485a7aed5b1b9b27852bafae3296bf8d
BLAKE2b-256 checksum
How to use checksums
d57ec4f190371b85e00a0262f95e1e7d46cb1f4e9443faf6df2559a22da08f6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.20.0-py3-none-any.whl

Download URL numen_sandbox_py-0.20.0-py3-none-any.whl
Size 94.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1315f5dabedda70e0694bd3b184a87df800718441f645494bcc4b9ddb16b6a06
BLAKE2b-256 checksum
How to use checksums
9e1b39631a82a111dd3146278243ebb3baae12c265b39115a2496142c013dd98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.20.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