You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

looptimer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

looptimer

1.1.0
pipPyPI
Maintainers
1

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

timer

FAQs

Did you know?

Socket

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