Ben Chuanlong Du's Blog

It is never too late to learn.

Hands on the tqdm Module in Python

Simple Use Case

The usage of the tqdm module is really simple. All you need is to import the tqdm function from the tqdm module, and then wrap the function tqdm over the iterable object that you want iterate over. This is really convenient if you have a long running task and want to report the progress of the task.