Skip to main content

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 Locks from multiprocessing

PyPI version

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


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)

Uploaded Source

Built Distribution

PPool-1.0.0-py2-none-any.whl (2.3 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page