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. Also, it supports unicorns.

Animation of jabbar in use

For very serious work, you may want to try e.g. the slightly more professional tqdm package.

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.

Further examples can be found in the example/howto.ipynb notebook.

License

jabbar is available under an 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.14.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

jabbar-0.0.14-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jabbar-0.0.14.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for jabbar-0.0.14.tar.gz
Algorithm Hash digest
SHA256 da835c0032abc53312a9e09a014cb50c51d57e1d7d28e1b06cdf7b5a3877ada4
MD5 5ab3345c40fba2f1c83f445b31748453
BLAKE2b-256 3922f00029760b44523d800462ea08888a5b11e1b52547273a397aed0df0bb82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jabbar-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for jabbar-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 cd8ee4e8bf4f3be41bd3fdb9595787bb9dbec219d2d9bd25f3f9150ffcca2a3e
MD5 b7b30ce7df7bd662f065bf86d4adf61b
BLAKE2b-256 3a1b430f0a25d9dbb85182f2bf6994e323d1870ae091dd9a8ac25d517fff3664

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