UNPKG

node-red-contrib-pythonshell

Version:
8 lines (6 loc) 211 B
var PythonshellNode = require('../src/PythonShellNode'); var pyNode = new PythonshellNode({ pyfile: "./test/sample.py", virtualEnv: "./test/venv", }); pyNode.onInput({payload: ""}, console.log, console.log);