G'day perlancar,
I'm not particularly familiar with Python, and have never heard of tqdm(), so this is just a suggestion.
The Smart::Comments CPAN module achieves something similar to what I think you're looking for. Its "Progress Bars" section has substantial documentation; also see the "Time-Remaining Estimates" section.
It also documents a number of caveats which may be pertinent depending on your intended usage. For instance, it uses source filters and has some efficiency issues when the number of iterations is indeterminate.
— Ken
In reply to Re: Porting tqdm to Perl
by kcott
in thread Porting tqdm to Perl
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |