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

hive-progress-bar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hive-progress-bar

A small progress bar for iterating over a collection and showing progress.

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

hive-progress-bar

This is a simple package to show progress when doing some computations on a collection. It shows the number of items iterated and a time estimate for the remaining items.

It over-writes the same line that progress bar is on as the iteration continues.

Installation

pip install hive-progress-bar

Usage

import time
from hive_progress_bar import ProgressBar

items = range(100)

pb = ProgressBar("Doing stuff on collection", len(items))

for _ in items:
    time.sleep(1)
    pb.next()

Example Output During Processing

Doing stuff on collection: [####                               ]   0h  1m 21s remaining | 12 / 100 Processed

After Finishing

Doing stuff on collection: [###################################]   0h  0m  0s remaining | 100 / 100 Processed

Time Taken:   0h  1m 40s

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