python-shell-cluster
v1.1.0
Published
Utility to run python script in parallel from nodejs
Downloads
6
Maintainers
Readme
Python Shell Cluster
Utility to run python script in parallel from nodejs
Example:
Typescript
import PythonShellCluster from "./index"
const cluster = new PythonShellCluster(1, __dirname + "/python/main.py")
cluster.run("this message will be passed to python").then((resposne) => console.log(resposne))
Python
while True:
b = input()
print("received" + b)