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 AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page