Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc