Skip to content

A simple-to-use progress bar for python terminal applications, adapted from a post on stack overflow.

License

Notifications You must be signed in to change notification settings

nga-27/progress-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

progress-bar

A simple-to-use progress bar for python terminal applications, adapted from a post on stack overflow.

Credit to this post

magical progress bar

Image created by Bing Image Creator (Dall-E 3)

Installation

Installation is fairly straightforward:

pip install progress_bar@git+ssh://git@github.com/nga-27/progress-bar@v0.1.0

Note, for those using zsh terminal, you may need to add quotes around the repo string after pip install portion.

To add to a python setup.py file:

REQUIRES = [
    'progress_bar @ git+ssh://git@github.com/nga-27/progress-bar@main'
]

Usage

An example code snippet of someone wanting a progress bar named "some name" that upticks every second for 10 seconds would have something like the following:

import time
from progress_bar import ProgressBar

max_num_ticks = 10
timer = ProgressBar(max_num_ticks, name="some name", use_stopwatch=True)

timer.start()
for _ in range(max_num_ticks):
    timer.uptick()
    time.sleep(1)

About

A simple-to-use progress bar for python terminal applications, adapted from a post on stack overflow.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages