Skip to main content

Just Another Beautiful progress BAR

Project description

Build status coverage Current version on PyPI

Just Another Beautiful progress BAR (some might replace Beautiful by Boring).

jabbar is a python package implementing a simple progress bar. The output looks like:

75% |█████████████████      | 750/1000

It is lightweight, easy to use and customizable. As a special feature, it gracefully deals with seeing more items than expected, e.g. 1100/1000.

Install

jabbar can be installed from PyPI via your favorite shell:

$ pip install jabbar

or from the latest code on GitHub with:

$ pip install git+https://github.com/yannikschaelte/jabbar.git

Get started

jabbar is quite flexible and can operate in different modes.

jabbar can simply wrap around any iterable to make loops show a little progress bar:

from jabbar import jabbar
for _ in jabbar(range(1000)):
    pass

The updating scheme can also be individually specified:

from jabbar import jabbar
with jabbar(total=1000, width=30) as bar:
    for _ in range(50):
        bar.inc(20)

When usage of a context manager is undesirable, use jabbar.finish() to clean up the output.

License

jabbar is available under a MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jabbar-0.0.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

jabbar-0.0.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file jabbar-0.0.4.tar.gz.

File metadata

  • Download URL: jabbar-0.0.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for jabbar-0.0.4.tar.gz
Algorithm Hash digest
SHA256 70357b3833e32f7183b26147e595918324003b323ce46d8e72cc9b8a3affd477
MD5 d17cb9373d1e21e220faba7c541bbd32
BLAKE2b-256 0d9756d43304fefe087144f0a263ceebdcb80e4cc04672713c4e7d4882302983

See more details on using hashes here.

File details

Details for the file jabbar-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: jabbar-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for jabbar-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 255ffa195b0db133507594c76966e90f493210a22abe29f41afaec67eb3c65ce
MD5 ce9aaffcc51ac8a3e53d1dd8b84efac7
BLAKE2b-256 d6c3f981c1c2f82f21ff9fcddb1cd0204c2d5a57fbafdebfcf1468a27ca6679c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page