ComfyUI Node
PSN Sandboxed Script
Run Python in a separate, resource-limited process (import allow-list, no network, no files, timeout). Define run(inputs) or set `result`. Defence in depth, NOT an OS sandbox.
PSN Sandboxed Script
- result_json
- ok
- stdout
- error
◄codedef run(inputs):
return inputs►
◄input_json{}►
◄timeout_s10►
◄memory_mb512►
CategoryParametric/Flow
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| code | STRING | def run(inputs): return inputs | Code. Default def run(inputs): return inputs. |
| input_json | STRING | {} | Input json. Default {}. |
| timeout_s | INT | 101–60 | Timeout s. From 1 to 60. Default 10. |
| memory_mb | INT | 51264–4096 | Memory mb. From 64 to 4096. Default 512. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| result_json | STRING | — |
| ok | BOOLEAN | — |
| stdout | STRING | — |
| error | STRING | — |