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.7.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

jabbar-0.0.7-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jabbar-0.0.7.tar.gz
  • Upload date:
  • Size: 5.1 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.7.tar.gz
Algorithm Hash digest
SHA256 58c39bc5e6bc894eac64210228d739a14cc959984286b8f254a54eb71fb26d3f
MD5 884c8fe7367bb15b5f1465ea34dbbc08
BLAKE2b-256 6d3d6c081606e6ba54a7a9bc0dba37c3ca4206fabbe9cfa026276dec32b6e3fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jabbar-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cee85b55b81c382e84a4c0c25f3f6fa2ca66764df9518fdb6e929d3e2aced89e
MD5 401ec0b044d50c2dad871112549dee44
BLAKE2b-256 f2ca07fc1552f229e9cfcfe90fbaa15bebc95d517392719a6aff6b5346be8f68

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