Skip to main content

Windowed progress bars for loop progress tracking, like in tqdm.

Project description

Prgb-pkg

(Despite the current project version is 0.x, full functionality of package is already implemented. There is a need to check if there are exceptional cases in which package content do not work correctly. After that, the version of package will be fixed and upgraded to 1.0 marking the stable release.)

Prgb-pkg is a Python package containing wrapper class for iterable objects.
The main reason of its creation, is to provide comfortable and intact tracking of progress in python for loops, like in tqdm.
Thanks to output information being put in dedicated GUI the console output is undisturbed and
kept clean even when you print out information during iterating. There is a possibility to use wrapper class in already wrapped loop.
Input iterable object does not have to be Sized, but if it is the case some progress information can not be obtained.
Package does not use any dependiences.

PyPI website
Git project homepage

meme_0

meme_1

Pip installation:

>pip install prgb-pkg

Import method:

from prgb_pkg import Prgb  

Example of wrapper class usage:

for i in Prgb(iterable):
    ...

Wrapper usage on nested loop:

a = [3, 4, 5]

for elem in Prgb(a):
    print(elem)
    for i in Prgb(range(3)):
        print(elem ** i)

Each wrapper can have an optional title and can be set to not display his progress in GUI:

Prgb(iterable, 'Some hilarious and creative title')

Prgb(iterable, display_bar=False)

Summary about ending time and totall runtime of chosen bar? No problem:

with open('example_bar_summary.txt', 'w') as f:
    for i in Prgb(iterable, print_summary=True, summary_stream=f)
        ...

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

prgb-pkg-0.2.2.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

prgb_pkg-0.2.2-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

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