I repeat, don't use this in production. And when you do (cause you will), please tell your manager I already told you so.
Requires Python (both 2.x and 3.x are supported) installed in the system.
npm install -g node-red-contrib-python-function
- Although it will accept virtually any msg you give it, any non-JSON data type will be silently dropped from the msg permanently.
- Somethings is wrong with the current implementation of the IPC, that makes it blow up when there are +2 messages waiting to be processed
- Python is by default a synchronous runtime. The function is run in a dedicated child process, therefore it won't block the NodeJS main process, but in any case only 1 message is processed at a time. That is, of course, unless you use any of the concurrency features available in Python, like multithreading, multiprocessing, Tornado, Twisted...
- No sandboxing has been attempted whatsoever. After all, this is just to have some fun, not to be used in production, remember...?