Nodes/Parametric Studio/PSN Sandboxed Script
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.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
PSN Sandboxed Script
    • result_json
    • ok
    • stdout
    • error
    ◄codedef run(inputs): return inputs►
    ◄input_json{}►
    ◄timeout_s10►
    ◄memory_mb512►
    CategoryParametric/Flow

    Inputs (4)

    NameTypeDefaultDescription
    codeSTRINGdef run(inputs): return inputsCode. Default def run(inputs): return inputs.
    input_jsonSTRING{}Input json. Default {}.
    timeout_sINT101–60Timeout s. From 1 to 60. Default 10.
    memory_mbINT51264–4096Memory mb. From 64 to 4096. Default 512.

    Outputs (4)

    NameTypeDescription
    result_jsonSTRING—
    okBOOLEAN—
    stdoutSTRING—
    errorSTRING—