auto-tqdm

Wrapper over tqdm for automatically handle switch between jupyter and cli and tunes bar to my liking (automatic resizing, stronger smoothing and tuning for erratic iterations).


License
MIT
Install
pip install auto-tqdm==1.0.1

Documentation

auto_tqdm

Travis CI build SonarCloud Quality SonarCloud Maintainability Codacy Maintainability Maintainability Pypi project

Wrapper over tqdm for automatically handle switch between jupyter notebook and cli and tunes bar to my liking (automatic resizing, stronger smoothing and tuning for erratic iterations).

How do I install this package?

As usual, just download it using pip:

pip install auto_tqdm

Tests Coverage

Since some software handling coverages sometime get slightly different results, here's three of them:

Coveralls Coverage SonarCloud Coverage Code Climate Coverate

Usage Example

So basically, this is a tqdm with only a twist: it is tuned with both my preferred settings and allows for total remaining time prediction.

from auto_tqdm import tqdm, remaining_time

for _ in tqdm(range(10)):
    for _ in tqdm(range(10)):
        for _ in tqdm(range(10)):
            print(remaining_time())