skillfed

parallelbar

Parallel processing with progress bars

parallelbar v2.5 100.0K downloads/30d#13,007 on PyPI45
Permissive license MIT Active released

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 parallelbar

uv

uv add parallelbar

poetry

poetry add parallelbar

Installing 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

parallel map with progress barmultiprocessing progress trackingtqdm parallel processingpool progress barparallel task monitoringconcurrent map with exceptionsmultiprocessing exception handling
multiprocessingprogress-barparallel-execution

More Distributed Computing packages