{"repo":"wolph/python-progressbar","free":true,"listed":false,"github":"https://github.com/wolph/python-progressbar","clone":"git clone https://github.com/wolph/python-progressbar.git","description":"Progressbar 2 - A progress bar for Python 2 and Python 3 - \"pip install progressbar2\"","language":"Python","stars":879,"topics":["python","progressbar","progress-bar","rate","eta","percentage","console","terminal","time","progress"],"license":"BSD-3-Clause","category":"cli-tools","readme_excerpt":"progressbar2 The fastest progress bar in Python, maintained since 2012. Wrapping a fast loop in a progress bar can cost more than the loop itself, so the overhead per iteration is the number that matters. This race replays the measured wall-clock times of the same 1,000,000-iteration loop, wrapped with each library's default settings: Library Overhead per iteration Same loop, wall clock --- --: --: progressbar2[fast] 3.6 ns 9.2 ms rich 18.2 ns 23.8 ms progressbar2 26.0 ns 31.5 ms tqdm 52.1 ns 57.6 ms alive-progress 243.3 ns 248.9 ms click 1829.6 ns 1835.2 ms The [fast] row is pip install 'progressbar2[fast]' : an optional C iterator from the speedups package that counts natively and only calls back into Python when the bar actually needs a redraw. A plain install runs the pure-Python gate at 26 ns, still twice as light as tqdm. Import weight follows the same pattern: import progressbar costs 1.5 ms where tqdm takes 21.6 ms and rich 45.6 ms, which your command-line tools will notice. Note: These numbers come from one machine (Apple Silicon, CPython 3.13, output to a real pty) and from this exact test, measured by benchmarks/bench.py. Your numbers will differ. click is measured but left out of the race animation because its 1.8 s total would flatten every other lane. Reproduce with python benchmarks/bench.py , full details in benchmarks/report.md. Install Quick start The common case needs one line around the iterable: Every example in the documentation runs live in the page. Pr","default_branch":null,"files":null,"tree":[],"storefront":"/r/wolph","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wolph/python-progressbar/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}