enhanced-multiprocessing-1.0
توضیحات
A wrapper around Python's multiprocessing, providing support for tqdm progress bars and shared arguments
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | enhanced-multiprocessing-1.0 |
| نام | enhanced-multiprocessing |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Michal Krassowski |
| ایمیل نویسنده | krassowski.michal+pypi@gmail.com |
| آدرس صفحه اصلی | https://github.com/krassowski/enhanced-multiprocessing |
| آدرس اینترنتی | https://pypi.org/project/enhanced-multiprocessing/ |
| مجوز | MIT |
Enhanced multiprocessing
========================
A wrapper around Python's multiprocessing, providing support for tqdm
progress bars and shared arguments.
Provides simple, familiar interface with addiitonal superpowers.
Installation
~~~~~~~~~~~~
.. code:: bash
pip install enhanced_multiprocessing
Example usage
~~~~~~~~~~~~~
.. code:: python
from enhanced_multiprocessing import Pool
def add_n(x, n):
return x + n
# the number of processes will be set to number of cores - 1 by default
p = Pool()
# will apply add_n to the element list of length three with n=5, showing a nice progress bar along
result = p.imap(add_n, [1, 2, 3], shared_args=(5, ))
assert list(result) == [6, 7, 8]
History
~~~~~~~
Originally published at
`kn-bibs/pathways-analysis <https://github.com/kn-bibs/pathways-analysis/>`__,
then further developed for
`krassowski/drug-disease-profile-matching <https://github.com/krassowski/drug-disease-profile-matching>`__.
نحوه نصب
نصب پکیج whl enhanced-multiprocessing-1.0:
pip install enhanced-multiprocessing-1.0.whl
نصب پکیج tar.gz enhanced-multiprocessing-1.0:
pip install enhanced-multiprocessing-1.0.tar.gz