Skip to content
ProgressBar for Python, based on Arch progressbar, with "ILoveCandy"
Python
Find file
Latest commit 1696370 Oct 15, 2015 @xeBuz Merge pull request #4 from xeBuz/xebuz_codestyling
Code refactor
Failed to load latest commit information.
.idea/inspectionProfiles Code refactor Oct 15, 2015
.gitignore Gitignore updated Oct 15, 2015
ChangeLog.yaml Code refactor Oct 16, 2015
LICENSE Code refactor Oct 16, 2015
MANIFEST setup.py changes Oct 20, 2012
README.md Code refactor Oct 16, 2015
example_download.py Code refactor Oct 16, 2015
example_simple.py Code refactor Oct 16, 2015
pacmanprogressbar.py Code refactor Oct 16, 2015
setup.py Code refactor Oct 16, 2015

README.md

Pacman-progressbar

A ProgressBar for Python, based on Arch progressbar, with ILoveCandy option enabled.

Instalation

pip install pacmanprogressbar

Usage

Import the package and create the bar

from pacmanprogressbar import Pacman
 p = Pacman()

Parameters

Parameter Default Description
start 0 Initial value
end 100 Defines the bar's dimension in an amount of items or "steps"
width console size Size (in chars) of the bar, by default is the console size
step 0 Current position in the progressbar
text None Write some text at the beginning of the line
encode UTF-8 Encoding

Methods

p.update([value])

Update the progress, incresing the size by 1, or by the "value" parameter

p.progress([value]):

Set an specified progress, the parameters is mandatory:

Output


Alt text

Something went wrong with that request. Please try again.