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 |
Metadata
Release files for looptimer 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| looptimer-1.1.0.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| looptimer-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / looptimer-1.1.0.tar.gz
| Download URL | looptimer-1.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63222f3e1da3c70cc219ea701c371f87183cde0b7a0bb0e6091737983a5c338e
|
|
BLAKE2b-256 checksum How to use checksums |
cc5c1f5775bc1e021aae1c9b164feae1dbcf7bff8fda44c5dd9cac29a6a7fbd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / looptimer-1.1.0-py3-none-any.whl
| Download URL | looptimer-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35bb432a6c3ef6488cf4de8c86456eb9fbb77a71a541208a4e5edd9cf9b9485b
|
|
BLAKE2b-256 checksum How to use checksums |
38f65acbe821d0ba6741a798e9f6ebad21a33b730255076d0d090d49d38d7fb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|