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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file looptimer-1.1.0.tar.gz.

File metadata

  • Download URL: looptimer-1.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for looptimer-1.1.0.tar.gz
Algorithm Hash digest
SHA256 63222f3e1da3c70cc219ea701c371f87183cde0b7a0bb0e6091737983a5c338e
MD5 90b0166dc10a19eb38b8e053d4ced1d0
BLAKE2b-256 cc5c1f5775bc1e021aae1c9b164feae1dbcf7bff8fda44c5dd9cac29a6a7fbd2

See more details on using hashes here.

File details

Details for the file looptimer-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: looptimer-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for looptimer-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35bb432a6c3ef6488cf4de8c86456eb9fbb77a71a541208a4e5edd9cf9b9485b
MD5 8e8a871be64f5de358614b153e3e5c8d
BLAKE2b-256 38f65acbe821d0ba6741a798e9f6ebad21a33b730255076d0d090d49d38d7fb6

See more details on using hashes here.

Supported by

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