A Pool for Processes in Python with locks
Project description
PPool
PPool is a Pool for Processes in Python with locks. The main advantage is the ability to use Lock
s from multiprocessing
Install
pip install PPool
pypi
https://pypi.org/project/PPool/
Example
from PPool.Pool import Pool
params = [('A', 2),('B', 3),('C', 4), ('D', 5)]
def foo(name, num):
print(name+str(num))
pool = Pool(max_num_of_processes=3, func=foo, params_list=params)
pool.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PPool-1.0.0.tar.gz
(1.9 kB
view hashes)
Built Distribution
PPool-1.0.0-py2-none-any.whl
(2.3 kB
view hashes)