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.19.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| numen_sandbox_py-0.19.0.tar.gz | 87.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| numen_sandbox_py-0.19.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 182.2 kB
Release files / numen_sandbox_py-0.19.0.tar.gz
| Download URL | numen_sandbox_py-0.19.0.tar.gz |
|---|---|
| Size | 87.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b62cc93abf0510f49878a74b6f2df6977896603c9dc1971c2aefdfbd946ec8a
|
|
BLAKE2b-256 checksum How to use checksums |
daf181bf653789b1dd3de55ed333e1eac8a8ed8df0e23780235097c4a4e4095d
|
| 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.19.0-py3-none-any.whl
| Download URL | numen_sandbox_py-0.19.0-py3-none-any.whl |
|---|---|
| Size | 94.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c1826c7dae4e32a744aa02064600ddb2d3489530d8c9b447ef527877dae88a3
|
|
BLAKE2b-256 checksum How to use checksums |
1ca62d76ca204eeb1a2970d86973dc65cedd9f48584a54e9baba281010dce97c
|
| 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.19.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.