Skip to main content

ProgressBar for Python, based on ArchLinux progressbar

Project description

Pacman Progressbar
====================
A ProgressBar for Python, based on Arch progressbar, with "ILoveCandy" option enabled.


Usage
-----
Import the package and create the bar

.. code:: pycon
>>> from pacmanprogressbar import Pacman
>>> p = Pacman()


Parameters
----------
- start: It should be 0.
- end: Defines the bar's dimension in an amount of items or "steps", by default is 100.
- width: Size (in chars) of the bar, by default is the console size.
- step: Current position in the progrressbar, Default 0.
- text: Write some text at the beginning of the line.


Methods
-------
Update the progress, incresing the size by 1, or by the "value" parameter:
.. code:: pycon
>>> p.update([value])



Set an specified progress, the parameters is mandatory
.. code:: pycon
>>> p.progress(value):

Project details


Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page