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
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prgb-pkg-0.2.2.tar.gz.
File metadata
- Download URL: prgb-pkg-0.2.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
483601fa3a4427318b67ba566ebfcebc0a453f3cc79a41f6a670f1caad33f8e3
|
|
| MD5 |
1c1469affdaf642d2768a49a08d7eb8b
|
|
| BLAKE2b-256 |
db995e9189b4aa6a7523890835cae5b17ecb0dad4378804b41035b9bb4b86819
|
File details
Details for the file prgb_pkg-0.2.2-py3-none-any.whl.
File metadata
- Download URL: prgb_pkg-0.2.2-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a7cfb4a5c5a17da72484bd3eaef294de84a610cd11b6fc454f0775e13515af3
|
|
| MD5 |
89cdb9e86afc733b0b651b9a4b4fc882
|
|
| BLAKE2b-256 |
13d4d1b69abefebf60f54aab275460275b5836b7ede545707d5253992fe5f3c0
|