How to use the python-shell.PythonShell.end function in python-shell

To help you get started, we’ve selected a few python-shell examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geojacobm6 / keyword_finder / js / main.js View on Github external
app.on('quit', function() {
    global.py_proc.kill('SIGINT');
    PythonShell.end(function (err,code,signal) {
      if (err) throw err;
    });
});

python-shell

Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio

MIT
Latest version published 2 years ago

Package Health Score

64 / 100
Full package analysis