Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niedakh/pqdm
Comfortable parallel TQDM using concurrent.futures
https://github.com/niedakh/pqdm
concurrent-futures parallel-computing progress-bar python tqdm
Last synced: 3 days ago
JSON representation
Comfortable parallel TQDM using concurrent.futures
- Host: GitHub
- URL: https://github.com/niedakh/pqdm
- Owner: niedakh
- License: mit
- Created: 2020-03-07T13:11:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-29T06:03:42.000Z (6 months ago)
- Last Synced: 2024-05-29T18:49:23.176Z (6 months ago)
- Topics: concurrent-futures, parallel-computing, progress-bar, python, tqdm
- Language: Python
- Homepage: https://pqdm.readthedocs.io/en/latest/
- Size: 85 KB
- Stars: 255
- Watchers: 4
- Forks: 8
- Open Issues: 14
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
=============
Parallel TQDM
=============.. image:: https://img.shields.io/pypi/v/pqdm.svg
:target: https://pypi.python.org/pypi/pqdm.. image:: https://readthedocs.org/projects/pqdm/badge/?version=latest
:target: https://pqdm.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status.. image:: https://pyup.io/repos/github/niedakh/pqdm/shield.svg
:target: https://pyup.io/repos/github/niedakh/pqdm/
:alt: UpdatesPQDM is a TQDM and concurrent futures wrapper to allow enjoyable paralellization of
iterating through an Iterable with a progress bar.* Free software: MIT license
* Documentation: https://pqdm.readthedocs.io.Install & Use
-------------To install ::
pip install pqdm
and use ::
from pqdm.processes import pqdm
# If you want threads instead:
# from pqdm.threads import pqdmargs = [1, 2, 3, 4, 5]
# args = range(1,6) would also workdef square(a):
return a*aresult = pqdm(args, square, n_jobs=2)
For more examples variants check the `Usage `_ section of the docs.
Features
--------* parellize your tqdm runs using processes or threads thanks to concurrent.futures,
* just import ``pqdm`` from ``pqdm.threads`` or ``pqdm.processes`` to start,
* automatic usage of ``tqdm.notebook`` when iPython/Jupyter notebook environment detected, custom tqdm class accepted
* automatic parsing of ``pqdm`` kwargs and separating between ``concurrent.Executor`` args and ``tqdm`` args,
* support for any iterable and passing items as kwargs, args or directly to function which is being applied
* support bounded exectutors via https://github.com/mowshon/bounded_pool_executorCredits
-------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage