Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hive-progress-bar, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size hive_progress_bar-0.0.4-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hive-progress-bar-0.0.4.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page