Skip to main content

looptimer

Progress bar style loop timer with projected time-to-completion.

License PyPi GHA

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)

Source distribution for looptimer 1.1.0
File Size Uploaded
looptimer-1.1.0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for looptimer 1.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page