🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

consolebar

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consolebar

Stunning progress bars for consoles for showing progress of python loops!

1.2
99

Supply Chain Security

100

Vulnerability

98

Quality

100

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Maintainers
1

ConsoleBar

Python Module which creates stunning progress bars for showing progress of loops and iterables in python.

Installation

Simply using PyPi:

pip install consolebar

Usage

Simply run the following python code:

from consolebar import ConsoleBar

for item in ConsoleBar(object'''(list(), tuple(), dict(), range(), iterable, etc.)''', optional_params):
    #Do your stuff

Thats it!

Parameters

  • loop_to_execute (Required): Python loop parameter (list(), dictionary(), tuple(), str(), range(), etc.) i.e. iterable object for which progress bar is shown.
  • prefix (Optional): A string which is shown before the progress bar to describe the progress bar (Default: "Progress:").
  • suffix (Optional): A string which is shown after the progress bar to describe the progress percentage shown after the progress bar (Default: "Complete").
  • length (Optional): Length of the progress bar in charecters. Can be adjusted according to one's console charecter width (Default: 50).

Highly useful when you want to run huge loops but don't want to just see the blinking cursor of the console while it is executing.

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