i can run python script through spawn but i am unable to send node object to python script and access that object in python.Can anybody explain me how to send node object to python and how to used that object in python. Thanks
Asked
Active
Viewed 36 times
0
-
Via network calls, or other IPC mechanisms depending on your environment. – Ayush Gupta Jun 03 '20 at 06:11
-
The easiest way seems to be serializing it to JSON and pushing it through stdin. – bereal Jun 03 '20 at 06:21
-
Does this answer your question? [How to call a Python function from Node.js](https://stackoverflow.com/questions/23450534/how-to-call-a-python-function-from-node-js) – Roy2012 Jun 03 '20 at 06:23