parallel-pro 0.0.1

Last updated:

0 purchases

parallel-pro 0.0.1 Image
parallel-pro 0.0.1 Images
Add to Cart

Description:

parallelpro 0.0.1

parallel_pro
parallel_pro is a simple package for parallel processing.
Installation
pip install parallel_pro

How to use
from parallel_pro import run_parallel
from datetime import datetime


def test(data):
ss = list()
for i in data:
ss.append(i * 2)
return ss


def main():
start = datetime.now()
data = run_parallel(list_of_data=list(range(100)), process_fun=test,workers=4,
verbose=False)
end = datetime.now()
# print(data)
diff = end - start
print(diff.total_seconds() / 60)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.