Socket
Socket
Sign inDemoInstall

looptimer

Package Overview
Dependencies
4
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    looptimer


Maintainers
1

Readme

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

ArgumentTypeDefaultDescription
labelstrNoneDescriptive label printed to the left of the progress bar
bar_charstrCharacter used to fill in the progress bar
bar_widthint20Character width of the progress bar
animateboolTrueDisable to print each update on a new line (useful when interspersed with other log messages)
max_refresh_secsfloat0.1Use to throttle print frequency for fast-iterating loops

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc