No project description provided
Project description
looptimer
Progress bar style loop timer with projected time-to-completion.
Installation
pip install looptimer
Usage
Directly wrap any iterable with timedloop
to get iteration progress status:
from looptimer import timedloop
for _ in timedloop(range(100), label='foo'):
...
Sample output
Optional arguments
Argument | Type | Default | Description |
---|---|---|---|
label |
str | None | Descriptive label printed to the left of the progress bar |
bar_char |
str | ▢ | Character used to fill in the progress bar |
bar_width |
int | 20 | Character width of the progress bar |
animate |
bool | True | Disable to print each update on a new line (useful when interspersed with other log messages) |
max_refresh_secs |
float | 0.1 | Use to throttle print frequency for fast-iterating loops |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
looptimer-1.1.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for looptimer-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35bb432a6c3ef6488cf4de8c86456eb9fbb77a71a541208a4e5edd9cf9b9485b |
|
MD5 | 8e8a871be64f5de358614b153e3e5c8d |
|
BLAKE2b-256 | 38f65acbe821d0ba6741a798e9f6ebad21a33b730255076d0d090d49d38d7fb6 |