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