Reputation: 1618
I have some code in Python and I am invoking the Python code from Node.js
. I am able to get the code executed, however I am stuck with getting the data streamed from Python to node.js.
Help me in identifying how to stream the data to node.js
.
P.S I am new to both Python and Node.js
Upvotes: 0
Views: 1288
Reputation: 45287
How are you doing this right now? It sounds like you should be using the Child Process libraries.
Are you using exec
or spawn
? They both work slightly differently, but they have either a callback (exec
) or events that fire when data is received (spawn
).
The examples on that page are pretty explicit. Is there something specific in those examples that you don't understand? Is there some sample code that you could provide to clarify your problem?
Upvotes: 1