Skip to main content

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.

Source Distribution

hive-progress-bar-0.0.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hive_progress_bar-0.0.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file hive-progress-bar-0.0.4.tar.gz.

File metadata

  • Download URL: hive-progress-bar-0.0.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for hive-progress-bar-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f9c25601fc0a7b5d968d685a64e7a5be2abf3ec5efb92e31ab98398139fdd6f7
MD5 1c21506d8519e3367a9f3f3797b2697b
BLAKE2b-256 b96f0ad095b4038d293b3f519decc66632b6cb66242195bb24ef0712369952e0

See more details on using hashes here.

File details

Details for the file hive_progress_bar-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: hive_progress_bar-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for hive_progress_bar-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f23296b9333e3db1b9de9d32ef2e6754b39cbfba9f214257debd7cd808333699
MD5 01da4fde00e17988b3f1a303891f5bb0
BLAKE2b-256 bb81379e326fe47268d515d48faf121fb47498c4ed4f837e75abb568b917ca50

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page