Socket
Book a DemoInstallSign in
Socket

nobar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nobar

Usefull progress "bar"

pipPyPI
Version
1.0.2.17
Maintainers
1

nobar

  • Why make a new progress bar?
  • To have the right one! Pythonic, plain, which can be used)

Quick start:

pip install nobar

Examples:

from nobar import nobar
from time import sleep

# With init. You'll see itetations and time left

nobar('task_1', 50)
for i in range(50):
    sleep(0.8)
    nobar('task_1')
    
>>> task_1   50 / 50   pas 00:00:46   lef 00:00:00   tot 00:00:46   las 0.801   avg 0.922



# Without init. Only Passed 

for i in range(800):
    sleep(0.02)
    nobar('task_2')
    
>>> task_2   800 / ---   pas 00:00:16   lef --:--:--   tot --:--:--   las 0.020   avg 0.020



# Previous data saved

nobar(print_all=True)

>>> task_1   50 / 50   pas 00:00:46   lef 00:00:00   tot 00:00:46   las 0.801   avg 0.922
>>> task_2   800 / ---   pas 00:00:16   lef --:--:--   tot --:--:--   las 0.020   avg 0.020

Keywords

progress bar

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