All Projects → shijungg → progress_bar

shijungg / progress_bar

Licence: other
A simple python progress bar tool to help show your job's progress

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to progress bar

Gif Progress
🎬 Attach progress bar to animated GIF
Stars: ✭ 156 (+680%)
Mutual labels:  progress-bar
Materialprogressbar
Material Design ProgressBar with consistent appearance
Stars: ✭ 2,145 (+10625%)
Mutual labels:  progress-bar
React Sweet Progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 239 (+1095%)
Mutual labels:  progress-bar
React Upload Box
A minimal Upload component for React.
Stars: ✭ 169 (+745%)
Mutual labels:  progress-bar
Hgcircularslider
A custom reusable circular / progress slider control for iOS application.
Stars: ✭ 2,240 (+11100%)
Mutual labels:  progress-bar
Progress
A PHP package to determine steps and progress.
Stars: ✭ 197 (+885%)
Mutual labels:  progress-bar
Ffpb
A progress bar for ffmpeg. Yay !
Stars: ✭ 149 (+645%)
Mutual labels:  progress-bar
shell-progressbar
Make a progress bar GUI on terminal platform (Shell script)
Stars: ✭ 39 (+95%)
Mutual labels:  progress-bar
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+14600%)
Mutual labels:  progress-bar
Circularprogressindicator
Customizable circular progress indicator
Stars: ✭ 232 (+1060%)
Mutual labels:  progress-bar
React Nprogress
⌛️ A React primitive for building slim progress bars.
Stars: ✭ 173 (+765%)
Mutual labels:  progress-bar
Liquid progress indicator
A liquid progress indicator for Flutter
Stars: ✭ 176 (+780%)
Mutual labels:  progress-bar
Percircle
⭕️ CSS percentage circle built with jQuery
Stars: ✭ 217 (+985%)
Mutual labels:  progress-bar
Ascii Progress
🍓 Ascii progress-bar(s) in the terminal.
Stars: ✭ 167 (+735%)
Mutual labels:  progress-bar
Pb
Console progress bar for Golang
Stars: ✭ 3,078 (+15290%)
Mutual labels:  progress-bar
Progress Bar.sh
Simple & sexy progress bar for `bash`, give it a duration and it will do the rest.
Stars: ✭ 155 (+675%)
Mutual labels:  progress-bar
P tqdm
Parallel processing with progress bars
Stars: ✭ 195 (+875%)
Mutual labels:  progress-bar
ConsoleTools
A set of tools and "controls" for the .net Console.
Stars: ✭ 67 (+235%)
Mutual labels:  progress-bar
Pace
Automatically add a progress bar to your site.
Stars: ✭ 15,368 (+76740%)
Mutual labels:  progress-bar
Beerprogressview
A library that lets you create a beer styled progress view with bubbles and all! (hic) 🍺
Stars: ✭ 230 (+1050%)
Mutual labels:  progress-bar

progress_bar

Overview

A progress bar tool, there are two versions(grey version and color version).

Dependencies

  • Python 2.7 or 3

How to use?

Import the ProgressBar class to your code from progress_bar_color.py or progress_bar.py

from progress_bar_color import ProgressBar

Creat a ProgressBar class and pass your total steps(i.e. 1000) to initialize it

pb = ProgressBar(1000)

Every time you finish one step, call show_progress funtion to update the progress bar

...
pb.show_progress()

When you finish your job, don't remember to call end function to start a new line

pb.end()

You can see test_progress_bar.py for reference.

You want to change the color?

If you want to change the color to show, just modify a number in test_progress_bar.py

You can find this:

'\033[0;34m %d \033[0m'

The '0' before ';' is to define whether show high light color or not. '1' is to show high light color, '0' is not.

The '34' before ';' is the character color, you can change it to the following value:

color value
black 30
red 31
green 32
yellow 33
blue 34
deep pink 35
cyan 36
white 37

FAQ

You may get this error when you use python3:

UnicodeEncodeError: 'ascii' codec can't encode characters in position 27-66: ordinal not in range(128)

Solution:

Add following argument to file ~/.bashrc

export LANG='C.UTF-8'

Then execute:

source ~/.bashrc
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].