Skip to content

ProgressBar for Python, based on Arch progressbar, with "ILoveCandy"

License

Notifications You must be signed in to change notification settings

xeBuz/pacman-progressbar

Repository files navigation

Pacman-progressbar

FOSSA Status

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

License

FOSSA Status

About

ProgressBar for Python, based on Arch progressbar, with "ILoveCandy"

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages