Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prgb-pkg

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prgb-pkg

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

  • 0.2.2
  • PyPI
  • Socket score

Maintainers
1

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)
        ...

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc