python-shell-cluster
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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)

/python-shell-cluster/

    Package Sidebar

    Install

    npm i python-shell-cluster

    Weekly Downloads

    5

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    16.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • magicaltoast