Just Another Beautiful progress BAR
Project description
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.
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 a MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jabbar-0.0.12.tar.gz
.
File metadata
- Download URL: jabbar-0.0.12.tar.gz
- Upload date:
- Size: 6.0 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.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 420f8f3bee8f54828e01030e66087265bcc9f9d03873565e2cb098d5e425a9e5 |
|
MD5 | e712b78ac15f341d004111729ff816b1 |
|
BLAKE2b-256 | 64e0c9cc4059c05e458525b4aabbcedce568b31d35ac95aa7a0d745af899bb6a |
File details
Details for the file jabbar-0.0.12-py3-none-any.whl
.
File metadata
- Download URL: jabbar-0.0.12-py3-none-any.whl
- Upload date:
- Size: 6.4 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.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f832b520fac4f480653fb327fcfd9b836dfe4d0b62d3e764866ae037ec75d0 |
|
MD5 | 844eb92f46d38634b748e2e0fbcd0f12 |
|
BLAKE2b-256 | 708a96a25ee5a44fead99b431ed46a639acddffbb7d242ed607a143392f8a30f |