Skip to main content

EZ Bar

PyPI release

A simple progress bar for loop progress measurement and time estimation.

The original idea and base script for this repository was created by @carlospuenteg. I just decided to refactor the code and add some nice features such as remaining and elapsed time counting.

Features

  • Simple and easy to use (create a progress bar and update it)
  • Colorful output so that you always see how your loop is progressing
  • Estimated time of completion prediction. No need to stare at the screen for minutes!
  • Elapsed time display. Know the efficiency of your loops!

https://user-images.githubusercontent.com/76848729/203905732-99d3c091-f375-499d-b990-0893130d106b.mp4

Installation

The installation of this module is performed via the Python Package Index (PyPI).

macOS / UNIX

python3 -m pip install ezbar

Windows

This operating system is not supported yet.

Usage

Just import the ProgressBar class and it will be ready to go!

from ezbar import ProgressBar

Example

from time import sleep
from ezbar import ProgressBar

ITERATIONS = 100

# Use default settings:

pb = ProgressBar(ITERATIONS)

for i in range(ITERATIONS):
    sleep(0.05)
    pb.update(i)

# Or customize them all you want!

pb = ProgressBar(ITERATIONS, text="Loading...", width=30)

for i in range(ITERATIONS):
    sleep(0.05)
    pb.update(i)

Disclaimer

This progress bar does not serve a performance counting purpose. It is only meant to be used for orientative loop progress measurement and time estimation. Do not use it for strict performance measurements.

Metadata

Release files for ezbar 1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ezbar 1.6
File Size Uploaded
ezbar-1.6.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ezbar 1.6
File Interpreter ABI Platform
ezbar-1.6-py3-none-any.whl Python 3 none any Details

Total release size: 31.4 kB

Release files / ezbar-1.6.tar.gz

Download URL ezbar-1.6.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e56e777e342bf50e72eac967ae195a2980613afec028df08345a4f1574a525d8
BLAKE2b-256 checksum
How to use checksums
4ecb6241001ed44e6d1e9e7f90ed67e10233ba478680b8d4b7f83bafda35f477
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / ezbar-1.6-py3-none-any.whl

Download URL ezbar-1.6-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62951a9c1f473c4ed87fc35d0b002603f312a53b9e88f691217348e0b53328a8
BLAKE2b-256 checksum
How to use checksums
b43ac6e212e8251b8216406cfd6f11232bb68f51d10121dfb66f7149307c816e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release history Release notifications | RSS feed

This release

1.6 This release

2 release files

1.5

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page