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

minibar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minibar

Simple text progress bar library

0.5.0
PyPI
Maintainers
1

Minibar

A (WIP) python progress bar

.. image:: https://travis-ci.org/canassa/minibar.svg?branch=master :alt: Travis CI build status :target: https://travis-ci.org/canassa/minibar

Installing

.. code-block:: python

pip install minibar

Usage

.. code-block:: python

import minibar
import time

for i in minibar.bar(range(100)):
    time.sleep(0.05)

Output:

.. image:: https://raw.githubusercontent.com/canassa/minibar/master/docs/img/progressbar_01-400x22.gif :alt: Progress bar

Minibar can be customized

.. code-block:: python

template = "{i}/{total} {bar} {elapsed}s {eta}"

for i in minibar(range(100), template=template):
    time.sleep(0.05)

The following widgets are avaliable:

  • {i} The numeric progress counter.
  • {total} The total value.
  • {bar} The progress bar.
  • {elapsed} The time ellapsed in seconds.
  • {eta} The estimated time to finish.

Keywords

progressbar 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