← Back to directory

Run a short Python 3.12 script in a fresh isolated Linux process with JSON input...

https://code.halowerk.com/v1/python-run

Overview

Run a short Python 3.12 script in a fresh isolated Linux process with JSON input, a JSON result, captured text output and small generated files. Executes Python 3.12 with its standard library in an empty, read-only Linux rootfs under a fresh unprivileged DynamicUser. Only /usr and the fixed worker are mounted, no application state or credentials. Networking is disabled both by a private network namespace and address-family restrictions; the environment is empty.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 14:09:44

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "code": "sum(input_data[\"prices\"])", "input": { "prices": [ 12, 8, 5 ] } }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Python 3.12 standard library only, without pip, third-party packages, internet, credentials or persistent storage. This API uses a native Python process inside an OS jail.", "At most 32000 code characters and 65536 input JSON bytes; the combined UTF-8 worker input is limited to 100000 bytes.", "The final expression must be JSON-compatible with finite numbers, at most 65536 encoded bytes. No final expression returns null.", "Captured stdout and stderr each have an 8192-byte JSON-encoded limit. Up to eight regular files directly in /tmp/output, together at most 32768 bytes; no output directories, symlinks, control characters or path separators in file names.", "The worker and any subprocesses share a 256 MiB / 3 s OS limit. Resource exhaustion or code errors fail before settlement. One isolated code worker per hub process at a time." ], "result": { "engine": "Python 3.12 standard library (isolated OS process)", "files": [], "limits": { "files_bytes": 32768, "max_files": 8, "process_memory_bytes": 268435456, "result_bytes": 65536, "worker_lifetime_ms": 3000 }, "stderr": "", "stdout": "", "value": 25, "wall_time_ms": 73 }, "service": "python-run", "status": "success" }, "type": "json" }