__init__.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # progressbar - Text progress bar library for Python.
  5. # Copyright (c) 2005 Nilton Volpato
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Lesser General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2.1 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. # Lesser General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Lesser General Public
  18. # License along with this library; if not, write to the Free Software
  19. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  20. """Text progress bar library for Python.
  21. A text progress bar is typically used to display the progress of a long
  22. running operation, providing a visual cue that processing is underway.
  23. The ProgressBar class manages the current progress, and the format of the line
  24. is given by a number of widgets. A widget is an object that may display
  25. differently depending on the state of the progress bar. There are three types
  26. of widgets:
  27. - a string, which always shows itself
  28. - a ProgressBarWidget, which may return a different value every time its
  29. update method is called
  30. - a ProgressBarWidgetHFill, which is like ProgressBarWidget, except it
  31. expands to fill the remaining width of the line.
  32. The progressbar module is very easy to use, yet very powerful. It will also
  33. automatically enable features like auto-resizing when the system supports it.
  34. """
  35. __author__ = 'Nilton Volpato'
  36. __author_email__ = 'first-name dot last-name @ gmail.com'
  37. __date__ = '2011-05-14'
  38. __version__ = '2.3'
  39. from .compat import *
  40. from .widgets import *
  41. from .progressbar import *