LinjianLi / progress-text

Python script for printing progress in text.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

progress-text

Python package for printing progress in text.

Important Note ❗ ❗ ❗

The every_percent in this tool can be achieved in tqdm by setting the parameter miniters to be equal to num_max_iters * every_percent / 100. The reason why I created this tool was that I did not read the documents of tqdm carefully (I have read it now on 2020-12-18) and I wanted a feature like every_percent.

Now that this tool seems to be not so useful, however, I will not delete this project. Instead, I may keep improving this tool and regard it as a practice.

Why not tqdm

tqdm is awesome, but I just want to print the progress to a log file by nohup.

Install

pip3 install --upgrade progress-text

Or clone the project, go into the project directory, and execute

python setup.py install

or

pip install ./

Or simply copy the source code.

Usage

See example.py.

Performance

The overhead is about 3 times as tqdm. See ./tests/test_overhead.

To do

None

About

Python script for printing progress in text.

License:Apache License 2.0


Languages

Language:Python 94.3%Language:Shell 5.7%