FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-progressbar/progressbar/__init__.py at develop · otakucode/python-progressbar · GitHub
otakucode
/
python-progressbar
Public
forked from
wolph/python-progressbar
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-progressbar
/
progressbar
/
__init__.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
97 lines (85 loc) · 2.68 KB
Breadcrumbs
python-progressbar
/
progressbar
/
__init__.py
Copy path
File metadata and controls
97 lines (85 loc) · 2.68 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# progressbar - Text progress bar library for Python.
# Copyright (c) 2005 Nilton Volpato
# Copyright (c) 2012 Rick van Hattem
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
'''Text progress bar library for Python.
A text progress bar is typically used to display the progress of a long
running operation, providing a visual cue that processing is underway.
The ProgressBar class manages the current progress, and the format of the line
is given by a number of widgets. A widget is an object that may display
differently depending on the state of the progress bar. There are three types
of widgets:
- a string, which always shows itself
- a ProgressBarWidget, which may return a different value every time its
update method is called
- a ProgressBarWidgetHFill, which is like ProgressBarWidget, except it
expands to fill the remaining width of the line.
The progressbar module is very easy to use, yet very powerful. It will also
automatically enable features like auto-resizing when the system supports it.
'''
from
datetime
import
date
from
progressbar
.
widgets
import
(
Timer
,
ETA
,
AdaptiveETA
,
AbsoluteETA
,
DataSize
,
FileTransferSpeed
,
AdaptiveTransferSpeed
,
AnimatedMarker
,
Counter
,
Percentage
,
FormatLabel
,
SimpleProgress
,
Bar
,
ReverseBar
,
BouncingBar
,
RotatingMarker
,
)
from
.
bar
import
ProgressBar
,
DataTransferBar
from
.
base
import
UnknownLength
__author__
=
'Rick van Hattem'
__author_email__
=
'Rick.van.Hattem@Fawo.nl'
__date__
=
str
(
date
.
today
())
__version__
=
'2.7.3'
__all__
=
[
'AbstractWidget'
,
'Widget'
,
'WidgetHFill'
,
'Timer'
,
'ETA'
,
'AdaptiveETA'
,
'AbsoluteETA'
,
'DataSize'
,
'FileTransferSpeed'
,
'AdaptiveTransferSpeed'
,
'AnimatedMarker'
,
'Counter'
,
'Percentage'
,
'FormatLabel'
,
'SimpleProgress'
,
'Bar'
,
'ReverseBar'
,
'BouncingBar'
,
'UnknownLength'
,
'ProgressBar'
,
'DataTransferBar'
,
'format_updatable'
,
'RotatingMarker'
,
]
Back
|
FazBrowse Home
|
New Git URL