Skip to main content

No project description provided

Project description

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

Project details


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)

Uploaded Source

Built Distribution

looptimer-1.1.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page