parallelbar
Parallel processing with progress bars
What it is and what it does
Parallelbar is a thin wrapper around Python's standard multiprocessing.Pool that adds live progress bars to parallel map operations. It sits on top of tqdm and colorama to display task completion and handles exceptions and timeouts that occur in worker processes, capturing their tracebacks and returning them in the result list alongside successful outputs.
You use it by replacing calls to pool.map() or pool.imap() with progress_map() or progress_imap(), specifying the number of CPU cores and optionally a timeout per task. The package supports exception handling (exceptions are caught and returned in-place), task timeouts (with automatic process restart), and decorators for adding progress to nested function calls within workers.
Use it for:
- Parallelize CPU-intensive batch processing (e.g., image resizing, data transformation) and watch progress in real time.
- Run parameter sweeps or hyperparameter searches across multiple cores with live feedback on completion.
- Process large datasets with starmap to unpack argument tuples while monitoring progress and catching per-task errors.
- Add timeout protection to worker tasks to prevent hung processes from blocking the entire pool.
- Debug parallel code by capturing exception tracebacks from worker processes instead of losing them to the pool.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parallelbar wraps Python's multiprocessing Pool methods (map, starmap, imap, imap_unordered) to display live progress bars and handle exceptions and timeouts across worker processes.
Yes. Low install friction, active maintenance, permissive license, and no known vulnerabilities. Use it if you need live progress feedback on multiprocessing.Pool operations or want built-in exception and timeout handling for parallel tasks. Skip it only if you prefer raw Pool performance without monitoring overhead or use async/concurrent.futures instead of multiprocessing.
Install
parallelbar on PyPI
pip
pip install parallelbaruv
uv add parallelbarpoetry
poetry add parallelbarInstalling parallelbar
Before you install
Low friction: pure Python wheel with only two runtime dependencies (tqdm and colorama). Actively maintained with recent releases; last commit 2026-07-13.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
from parallelbar import progress_map
from multiprocessing import cpu_count
def task(x):
return x * 2
if __name__ == '__main__':
results = progress_map(task, range(100), n_cpu=cpu_count())
On Windows, functions decorated with @add_progress must accept a worker_queue parameter; on UNIX systems this is optional.
Verify before relying
- Whether the package works with modern Python versions (requires_python is unspecified in metadata)
- Performance overhead of progress tracking relative to raw Pool operations
- Compatibility with nested multiprocessing or process pools within worker functions
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — tqdm, colorama |
| Maintenance | actively maintained — 574 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 99,992/month — #13,007 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: parallelbar-2.5-py3-none-any.whl
Keywords: progress bar, tqdm, parallelbar, parallel tqdm, parallel map, parallel, multiprocessing bar
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
tqdm-multiprocessDisplays multiple tqdm progress bars from…
permissive · top 15,000 on PyPI
p-tqdmp_tqdm wraps pathos and tqdm to apply a…
permissive · top 15,000 on PyPI
tqdm-joblibAdds a progress bar to joblib.Parallel…
unclear · top 15,000 on PyPI
paraDistributes CPU-intensive processing of…
permissive · top 15,000 on PyPI
PebblePebble provides decorators and pool…
copyleft · top 5,000 on PyPI
pqdmpqdm wraps tqdm and concurrent.futures to…
permissive · top 15,000 on PyPI
acvl-utilsProvides utility functions for dynamic…
permissive · top 15,000 on PyPI
progressbar2progressbar2 renders text-based progress bars…
permissive · top 5,000 on PyPI
mpireMPIRE provides a faster, more feature-rich…
permissive · top 5,000 on PyPI
stqdmstqdm wraps tqdm progress bars for Streamlit…
permissive · top 15,000 on PyPI