- run and runString now return a promise instead of a using a callback.
- You will need to 1) check the return value, 2) remove the callback argument, and 3) change to a promise
- see readme for usage examples
- I confirmed that python-shell works with python 3.11 and node v18.
- run and runString now return a promise instead of a using a callback.
- This is somewhat backwards compatible with previous behavior
- Previously when you called the kill method the terminated attribute was always set to true, regardless of whether the process was actually killed. Now the terminated boolean is set to true if kill succeeds, false otherwise. #255
- BREAKING Default python path changed back to
python
on Windows. #237 - BREAKING
error
event renamed topythonError
event. #118 - BREAKING
receive
methods removed in favor ofsplitter
arguments in the constructor. This lets the default splitting logic reside in a reuseable stream transformer. Now if you have extra pipes you can reusenewlineTransformer
to split incoming data into newline-seperated lines.
error
event that is fired upon failure to launch process, among other things. #118
- @joaoe fixed a bug with pythonshell not working with unset std streams
- https://github.com/extrabacon/python-shell/milestone/9
- default python path updated to py on windows
- added getVersionSync
- fixed buffering in
PythonShell.receive
, fixing #1
- improved documentation
- initial version
- independent module moved from extrabacon/pyspreadsheet