Codewerk
python run
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. Input is exposed as input_data, the final expression is the JSON result, and the working directory /tmp/output provides up to eight small generated files returned as base64..
POST https://code.halowerk.com/v1/python-runInputs
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | Python script; the last expression is returned. |
| input | See schema | No | Optional JSON value exposed as input_data. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"minLength": 1,
"maxLength": 32000,
"description": "Python script; the last expression is returned."
},
"input": {
"description": "Optional JSON value exposed as input_data."
}
}
}Published input example
{
"code": "sum(input_data[\"prices\"])",
"input": {
"prices": [
12,
8,
5
]
}
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea