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 details)
Built Distribution
PPool-1.0.0-py2-none-any.whl
(2.3 kB
view details)
File details
Details for the file PPool-1.0.0.tar.gz
.
File metadata
- Download URL: PPool-1.0.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274b80f182645bc85f79598190c80fd800cfe8dd9cbd30281338418b4fa2b8c8 |
|
MD5 | 7e12b6dab1f6d83e55ae260686a1651f |
|
BLAKE2b-256 | 96ba3c4911a2dbc1d32dcd71a6fb8f9de87d17a651f014977af21cf3c10c1de1 |
File details
Details for the file PPool-1.0.0-py2-none-any.whl
.
File metadata
- Download URL: PPool-1.0.0-py2-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989ecba4a073438ff6fd01c38830d2aaf2d1f966492dcb1900a6b5ecb81cce2e |
|
MD5 | ff6f94e33619774299be1855e8aec365 |
|
BLAKE2b-256 | 0954d4fbc5368f1576367e892c36d30d40301230ee45d9d32f4a17771da89a21 |