python-shell
python-shell copied to clipboard
Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio
Is there a way to load the script that is stored inside an asar file? I am working with electron and I need to package everything into asar file (more...
Hi! we are launching several python processes using the python-shell module and we have been noticing that in some cases the processes do not finish properly (the expected output is...
I'm calling a python script that outputs JSON if everything goes right, but outputs an error message otherwise. When using `{mode: 'json'}`, a JSON parsing error is thrown instead of...
How to pass data when it request to input data and after that the script work, What i do, i m using telethon in node. is it possible to use??
Hello, I can't kill a script initiated via Node-Red function node in the following flow: `[{"id":"10ab142a.8ba58c","type":"function","z":"14e30967.8aa527","name":"wave.py","func":"var PythonShell = context.global.PythonShell;\nvar python = new PythonShell('wave.py');\n\nvar options = {\n mode: 'text',\n pythonPath: '/usr/bin/python',\n...
in order to run `python -m mymodule` using python shell I had to bend the expectations on how it is used. ``` python var shellOptions = { scriptPath: 'press', cwd:...
It says that the version is a empty string. No idea why - passes locally. I should try using a different computer and seeing if it passes there. The other...
Many programs utilize carriage return in the output updates to the console without pushing a new line. It would be sweet if python-shell could handle these gracefully and fire a...
Is it possible to pass a `timeout` parameter? Once the time specified via `timeout` parameter is over, the process should automatically terminate and `PythonShell` invokes `timeoutError`?