dejanrizvan / node-red-contrib-python3-function

MIT License
9 stars 6 forks source link

How to install Python modules? #6

Open epm-bt opened 5 years ago

epm-bt commented 5 years ago

I am working with Web3 applications running on Node-RED. The JS code for a simpler implementation of my application works, but I already have a long script in Python that would help me if the function node in RED accepted it in straight away...

How do I install Python modules to import on the Node-RED function nodes?

Cheers,

xhenrique commented 5 years ago

Maybe you can use pythonshell node, he outputs anything you print as "msg.payload", and you can import inside that script any modules you want to run