slimparallel

A simple multiprocessing helper.


Keywords
multiprocessing helper.
License
Apache-2.0
Install
pip install slimparallel==1.0.3

Documentation

A simple multiprocessing helper.

install

pip install slimparallel

usage:

from slimparallel import Pool, Task


def test(a: int, b: str):
    print(a, b)
    return a


p1 = (1, 'a')
p2 = (2, 'b')
p3 = (3, 'c')

task = Task(test)
params = (p1, p2, p3, p1, p2, p3)

pool = Pool(task, params, 2)
r = pool.start()
print(r)