Python Universe
1.99K subscribers
103 photos
1 video
1 file
55 links
Everything you need to know about Python programming.

Admin: @haraisen
Feedback: @pythontg_feedbackbot
Download Telegram
Progress bar

🔸tqdm is a Python library that allows you to output a smart progress bar by wrapping around any iterable. A tqdm progress bar not only shows you how much time has elapsed, but also shows the estimated time remaining for the iterable.

⚙️Installation
pip install tqdm

To start using tqdm you just need to wrap the tqdm() function around the iterable, which will generate a progress bar while our for-loop is running. We can also assign a name to the progress bar using the desc keyword argument. The resulting tqdm progress bar gives us information that includes the task completion percentage, number of iterations complete, time elapsed, estimated time remaining, and the iterations completed per second.

🔗Github

#progressbar #tqdm