FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-progressbar/progressbar/widgets.py at develop · goofycoder/python-progressbar · GitHub
goofycoder
/
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
/
widgets.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
558 lines (424 loc) · 19 KB
Breadcrumbs
python-progressbar
/
progressbar
/
widgets.py
Copy path
File metadata and controls
558 lines (424 loc) · 19 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
from
__future__
import
division
,
absolute_import
,
with_statement
from
__future__
import
print_function
import
datetime
import
abc
import
sys
import
pprint
from
.
import
utils
from
.
import
six
from
.
import
base
class
FormatWidgetMixin
(
object
):
'''Mixin to format widgets using a formatstring
Variables available:
- max_value: The maximum value (can be None with iterators)
- value: The current value
- total_seconds_elapsed: The seconds since the bar started
- seconds_elapsed: The seconds since the bar started modulo 60
- minutes_elapsed: The minutes since the bar started modulo 60
- hours_elapsed: The hours since the bar started modulo 24
- days_elapsed: The hours since the bar started
- time_elapsed: Shortcut for HH:MM:SS time since the bar started including
days
- percentage: Percentage as a float
'''
required_values
=
[]
def
__init__
(
self
,
format
,
**
kwargs
):
self
.
format
=
format
def
__call__
(
self
,
progress
,
data
,
format
=
None
):
'''Formats the widget into a string'''
try
:
return
(
format
or
self
.
format
)
%
data
except
(
TypeError
,
KeyError
):
print
(
'Error while formatting %r'
%
self
.
format
,
file
=
sys
.
stderr
)
pprint
.
pprint
(
data
,
stream
=
sys
.
stderr
)
raise
class
WidthWidgetMixin
(
object
):
'''Mixing to make sure widgets are only visible if the screen is within a
specified size range so the progressbar fits on both large and small
screens..
'''
def
__init__
(
self
,
min_width
=
None
,
max_width
=
None
,
**
kwargs
):
self
.
min_width
=
min_width
self
.
max_width
=
max_width
def
check_size
(
self
,
progress
):
if
self
.
min_width
and
self
.
min_width
>
progress
.
term_width
:
return
False
elif
self
.
max_width
and
self
.
max_width
<
progress
.
term_width
:
return
False
else
:
return
True
class
WidgetBase
(
object
):
__metaclass__
=
abc
.
ABCMeta
'''The base class for all widgets
The ProgressBar will call the widget's update value when the widget should
be updated. The widget's size may change between calls, but the widget may
display incorrectly if the size changes drastically and repeatedly.
The boolean TIME_SENSITIVE informs the ProgressBar that it should be
updated more often because it is time sensitive.
WARNING: Widgets can be shared between multiple progressbars so any state
information specific to a progressbar should be stored within the
progressbar instead of the widget.
'''
INTERVAL
=
None
def
__init__
(
self
,
**
kwargs
):
pass
@
abc
.
abstractmethod
def
__call__
(
self
,
progress
,
data
):
'''Updates the widget.
progress - a reference to the calling ProgressBar
'''
class
AutoWidthWidgetBase
(
WidgetBase
):
'''The base class for all variable width widgets.
This widget is much like the
\\
hfill command in TeX, it will expand to
fill the line. You can use more than one in the same line, and they will
all have the same width, and together will fill the line.
'''
@
abc
.
abstractmethod
def
__call__
(
self
,
progress
,
data
,
width
):
'''Updates the widget providing the total width the widget must fill.
progress - a reference to the calling ProgressBar
width - The total width the widget must fill
'''
class
TimeSensitiveWidgetBase
(
WidgetBase
):
'''The base class for all time sensitive widgets.
Some widgets like timers would become out of date unless updated at least
every `INTERVAL`
'''
INTERVAL
=
datetime
.
timedelta
(
seconds
=
1
)
def
_format_time
(
seconds
):
'''Formats time as the string "HH:MM:SS".'''
return
str
(
datetime
.
timedelta
(
seconds
=
int
(
seconds
)))
class
FormatLabel
(
FormatWidgetMixin
,
WidthWidgetMixin
):
'''Displays a formatted label
>>> label = FormatLabel('%(value)s', min_width=5, max_width=10)
>>> class Progress(object):
... pass
>>> Progress.term_width = 0
>>> label(Progress, dict(value='test'))
''
>>> Progress.term_width = 5
>>> label(Progress, dict(value='test'))
'test'
>>> Progress.term_width = 10
>>> label(Progress, dict(value='test'))
'test'
>>> Progress.term_width = 11
>>> label(Progress, dict(value='test'))
''
'''
mapping
=
{
'finished'
: (
'end_time'
,
None
),
'last_update'
: (
'last_update_time'
,
None
),
'max'
: (
'max_value'
,
None
),
'seconds'
: (
'seconds_elapsed'
,
None
),
'start'
: (
'start_time'
,
None
),
'elapsed'
: (
'total_seconds_elapsed'
,
_format_time
),
'value'
: (
'value'
,
None
),
}
def
__init__
(
self
,
format
,
**
kwargs
):
FormatWidgetMixin
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
WidthWidgetMixin
.
__init__
(
self
,
**
kwargs
)
def
__call__
(
self
,
progress
,
data
):
if
not
self
.
check_size
(
progress
):
return
''
for
name
, (
key
,
transform
)
in
self
.
mapping
.
items
():
try
:
if
transform
is
None
:
data
[
name
]
=
data
[
key
]
else
:
data
[
name
]
=
transform
(
data
[
key
])
except
:
# pragma: no cover
pass
return
FormatWidgetMixin
.
__call__
(
self
,
progress
,
data
)
class
Timer
(
FormatLabel
,
TimeSensitiveWidgetBase
):
'''WidgetBase which displays the elapsed seconds.'''
def
__init__
(
self
,
format
=
'Elapsed Time: %(elapsed)s'
,
**
kwargs
):
FormatLabel
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
TimeSensitiveWidgetBase
.
__init__
(
self
,
**
kwargs
)
# This is exposed as a static method for backwards compatibility
format_time
=
staticmethod
(
_format_time
)
class
SamplesMixin
(
object
):
def
__init__
(
self
,
samples
=
10
,
key_prefix
=
None
,
**
kwargs
):
self
.
samples
=
samples
self
.
key_prefix
=
(
self
.
__class__
.
__name__
or
key_prefix
)
+
'_'
def
get_sample_times
(
self
,
progress
,
data
):
return
progress
.
extra
.
setdefault
(
self
.
key_prefix
+
'sample_times'
, [])
def
get_sample_values
(
self
,
progress
,
data
):
return
progress
.
extra
.
setdefault
(
self
.
key_prefix
+
'sample_values'
, [])
def
__call__
(
self
,
progress
,
data
):
sample_times
=
self
.
get_sample_times
(
progress
,
data
)
sample_values
=
self
.
get_sample_values
(
progress
,
data
)
if
progress
.
value
!=
progress
.
previous_value
:
# Add a sample but limit the size to `num_samples`
sample_times
.
append
(
progress
.
last_update_time
)
sample_values
.
append
(
progress
.
value
)
if
len
(
sample_times
)
>
self
.
samples
:
sample_times
.
pop
(
0
)
sample_values
.
pop
(
0
)
return
sample_times
,
sample_values
class
ETA
(
Timer
):
'''WidgetBase which attempts to estimate the time of arrival.'''
def
_eta
(
self
,
progress
,
data
,
value
,
elapsed
):
if
value
==
progress
.
min_value
:
return
'ETA: --:--:--'
elif
progress
.
end_time
:
return
'Time: %s'
%
self
.
format_time
(
data
[
'total_seconds_elapsed'
])
else
:
eta
=
elapsed
*
progress
.
max_value
/
value
\
-
data
[
'total_seconds_elapsed'
]
if
eta
>
0
:
return
'ETA: %s'
%
self
.
format_time
(
eta
)
else
:
return
'ETA: 0:00:00'
def
__call__
(
self
,
progress
,
data
):
'''Updates the widget to show the ETA or total time when finished.'''
return
self
.
_eta
(
progress
,
data
,
data
[
'value'
],
data
[
'total_seconds_elapsed'
])
class
AbsoluteETA
(
Timer
):
'''Widget which attempts to estimate the absolute time of arrival.'''
def
_eta
(
self
,
progress
,
data
,
value
,
elapsed
):
"""Update the widget to show the ETA or total time when finished."""
if
value
==
progress
.
min_value
:
# pragma: no cover
return
'Estimated finish time: ----/--/-- --:--:--'
elif
progress
.
end_time
:
return
'Finished at: %s'
%
self
.
_format
(
progress
.
end_time
)
else
:
eta
=
elapsed
*
progress
.
max_value
/
value
-
elapsed
now
=
datetime
.
datetime
.
now
()
eta_abs
=
now
+
datetime
.
timedelta
(
seconds
=
eta
)
return
'Estimated finish time: %s'
%
self
.
_format
(
eta_abs
)
def
_format
(
self
,
t
):
return
t
.
strftime
(
"%Y/%m/%d %H:%M:%S"
)
def
__call__
(
self
,
progress
,
data
):
'''Updates the widget to show the ETA or total time when finished.'''
return
self
.
_eta
(
progress
,
data
,
data
[
'value'
],
data
[
'total_seconds_elapsed'
])
class
AdaptiveETA
(
ETA
,
SamplesMixin
):
'''WidgetBase which attempts to estimate the time of arrival.
Uses a sampled average of the speed based on the 10 last updates.
Very convenient for resuming the progress halfway.
'''
def
__init__
(
self
,
**
kwargs
):
ETA
.
__init__
(
self
,
**
kwargs
)
SamplesMixin
.
__init__
(
self
,
**
kwargs
)
def
__call__
(
self
,
progress
,
data
):
times
,
values
=
SamplesMixin
.
__call__
(
self
,
progress
,
data
)
if
len
(
times
)
<=
1
:
# No samples so just return the normal ETA calculation
return
ETA
.
__call__
(
self
,
progress
,
data
)
else
:
return
self
.
_eta
(
progress
,
data
,
values
[
-
1
]
-
values
[
0
],
utils
.
timedelta_to_seconds
(
times
[
-
1
]
-
times
[
0
]))
class
DataSize
(
FormatWidgetMixin
):
'''
Widget for showing an amount of data transferred/processed.
Automatically formats the value (assumed to be a count of bytes) with an
appropriate sized unit, based on the IEC binary prefixes (powers of 1024).
'''
def
__init__
(
self
,
variable
=
'value'
,
format
=
'%(scaled)5.1f %(prefix)s%(unit)s'
,
unit
=
'B'
,
prefixes
=
(
''
,
'Ki'
,
'Mi'
,
'Gi'
,
'Ti'
,
'Pi'
,
'Ei'
,
'Zi'
,
'Yi'
),
**
kwargs
):
self
.
variable
=
variable
self
.
unit
=
unit
self
.
prefixes
=
prefixes
FormatWidgetMixin
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
def
__call__
(
self
,
progress
,
data
):
value
=
data
[
self
.
variable
]
if
value
is
not
None
:
scaled
,
power
=
utils
.
scale_1024
(
value
,
len
(
self
.
prefixes
))
else
:
scaled
=
power
=
0
data
[
'scaled'
]
=
scaled
data
[
'prefix'
]
=
self
.
prefixes
[
power
]
data
[
'unit'
]
=
self
.
unit
return
FormatWidgetMixin
.
__call__
(
self
,
progress
,
data
)
class
FileTransferSpeed
(
FormatWidgetMixin
,
TimeSensitiveWidgetBase
):
'''
WidgetBase for showing the transfer speed (useful for file transfers).
'''
def
__init__
(
self
,
format
=
'%(scaled)5.1f %(prefix)s%(unit)-s/s'
,
inverse_format
=
'%(scaled)5.1f s/%(prefix)s%(unit)-s'
,
unit
=
'B'
,
prefixes
=
(
''
,
'Ki'
,
'Mi'
,
'Gi'
,
'Ti'
,
'Pi'
,
'Ei'
,
'Zi'
,
'Yi'
),
**
kwargs
):
self
.
unit
=
unit
self
.
prefixes
=
prefixes
self
.
inverse_format
=
inverse_format
FormatWidgetMixin
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
TimeSensitiveWidgetBase
.
__init__
(
self
,
**
kwargs
)
def
_speed
(
self
,
value
,
elapsed
):
speed
=
float
(
value
)
/
elapsed
return
utils
.
scale_1024
(
speed
,
len
(
self
.
prefixes
))
def
__call__
(
self
,
progress
,
data
,
value
=
None
,
total_seconds_elapsed
=
None
):
'''Updates the widget with the current SI prefixed speed.'''
value
=
data
[
'value'
]
or
value
elapsed
=
data
[
'total_seconds_elapsed'
]
or
total_seconds_elapsed
if
value
is
not
None
and
elapsed
is
not
None
\
and
elapsed
>
2e-6
and
value
>
2e-6
:
# =~ 0
scaled
,
power
=
self
.
_speed
(
value
,
elapsed
)
else
:
scaled
=
power
=
0
data
[
'unit'
]
=
self
.
unit
if
power
==
0
and
scaled
<
0.1
:
if
scaled
>
0
:
scaled
=
1
/
scaled
data
[
'scaled'
]
=
scaled
data
[
'prefix'
]
=
self
.
prefixes
[
0
]
return
FormatWidgetMixin
.
__call__
(
self
,
progress
,
data
,
self
.
inverse_format
)
else
:
data
[
'scaled'
]
=
scaled
data
[
'prefix'
]
=
self
.
prefixes
[
power
]
return
FormatWidgetMixin
.
__call__
(
self
,
progress
,
data
)
class
AdaptiveTransferSpeed
(
FileTransferSpeed
,
SamplesMixin
):
'''WidgetBase for showing the transfer speed, based on the last X samples
'''
def
__init__
(
self
,
**
kwargs
):
FileTransferSpeed
.
__init__
(
self
,
**
kwargs
)
SamplesMixin
.
__init__
(
self
,
**
kwargs
)
def
__call__
(
self
,
progress
,
data
):
times
,
values
=
SamplesMixin
.
__call__
(
self
,
progress
,
data
)
if
len
(
times
)
<=
1
:
# No samples so just return the normal transfer speed calculation
value
=
None
elapsed
=
None
else
:
value
=
values
[
-
1
]
-
values
[
0
]
elapsed
=
utils
.
timedelta_to_seconds
(
times
[
-
1
]
-
times
[
0
])
return
FileTransferSpeed
.
__call__
(
self
,
progress
,
data
,
value
,
elapsed
)
class
AnimatedMarker
(
WidgetBase
):
'''An animated marker for the progress bar which defaults to appear as if
it were rotating.
'''
def
__init__
(
self
,
markers
=
'|/-
\\
'
,
default
=
None
,
**
kwargs
):
self
.
markers
=
markers
self
.
default
=
default
or
markers
[
0
]
WidgetBase
.
__init__
(
self
,
**
kwargs
)
def
__call__
(
self
,
progress
,
data
,
width
=
None
):
'''Updates the widget to show the next marker or the first marker when
finished'''
if
progress
.
end_time
:
return
self
.
default
return
self
.
markers
[
data
[
'updates'
]
%
len
(
self
.
markers
)]
# Alias for backwards compatibility
RotatingMarker
=
AnimatedMarker
class
Counter
(
FormatWidgetMixin
,
WidgetBase
):
'''Displays the current count'''
def
__init__
(
self
,
format
=
'%(value)d'
,
**
kwargs
):
FormatWidgetMixin
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
WidgetBase
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
class
Percentage
(
FormatWidgetMixin
,
WidgetBase
):
'''Displays the current percentage as a number with a percent sign.'''
def
__init__
(
self
,
format
=
'%(percentage)3d%%'
,
**
kwargs
):
FormatWidgetMixin
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
WidgetBase
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
class
SimpleProgress
(
FormatWidgetMixin
,
WidgetBase
):
'''Returns progress as a count of the total (e.g.: "5 of 47")'''
def
__init__
(
self
,
format
=
'%(value)d of %(max_value)d'
,
max_width
=
None
,
**
kwargs
):
self
.
max_width
=
dict
(
default
=
max_width
)
FormatWidgetMixin
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
WidgetBase
.
__init__
(
self
,
format
=
format
,
**
kwargs
)
def
__call__
(
self
,
progress
,
data
,
format
=
None
):
formatted
=
FormatWidgetMixin
.
__call__
(
self
,
progress
,
data
,
format
=
format
)
# Guess the maximum width from the min and max value
key
=
progress
.
min_value
,
progress
.
max_value
max_width
=
self
.
max_width
.
get
(
key
,
self
.
max_width
[
'default'
])
if
not
max_width
:
temporary_data
=
data
.
copy
()
for
value
in
key
:
if
value
is
None
:
# pragma: no cover
continue
temporary_data
[
'value'
]
=
value
width
=
len
(
FormatWidgetMixin
.
__call__
(
self
,
progress
,
temporary_data
,
format
=
format
))
if
width
:
# pragma: no branch
max_width
=
max
(
max_width
or
0
,
width
)
self
.
max_width
[
key
]
=
max_width
# Adjust the output to have a consistent size in all cases
if
max_width
:
# pragma: no branch
formatted
=
formatted
.
rjust
(
max_width
)
return
formatted
class
Bar
(
AutoWidthWidgetBase
):
'''A progress bar which stretches to fill the line.'''
def
__init__
(
self
,
marker
=
'#'
,
left
=
'|'
,
right
=
'|'
,
fill
=
' '
,
fill_left
=
True
,
**
kwargs
):
'''Creates a customizable progress bar.
The callable takes the same parameters as the `__call__` method
marker - string or callable object to use as a marker
left - string or callable object to use as a left border
right - string or callable object to use as a right border
fill - character to use for the empty part of the progress bar
fill_left - whether to fill from the left or the right
'''
def
string_or_lambda
(
input_
):
if
isinstance
(
input_
,
six
.
basestring
):
def
render_input
(
progress
,
data
,
width
):
return
input_
%
data
return
render_input
else
:
return
input_
def
_marker
(
marker
):
def
__marker
(
progress
,
data
,
width
):
if
progress
.
max_value
is
not
base
.
UnknownLength
\
and
progress
.
max_value
>
0
:
length
=
int
(
progress
.
value
/
progress
.
max_value
*
width
)
return
(
marker
*
length
)
else
:
return
''
if
isinstance
(
marker
,
six
.
basestring
):
assert
len
(
marker
)
==
1
,
'Markers are required to be 1 char'
return
__marker
else
:
return
marker
self
.
marker
=
_marker
(
marker
)
self
.
left
=
string_or_lambda
(
left
)
self
.
right
=
string_or_lambda
(
right
)
self
.
fill
=
string_or_lambda
(
fill
)
self
.
fill_left
=
fill_left
AutoWidthWidgetBase
.
__init__
(
self
,
**
kwargs
)
def
__call__
(
self
,
progress
,
data
,
width
):
'''Updates the progress bar and its subcomponents'''
left
=
self
.
left
(
progress
,
data
,
width
)
right
=
self
.
right
(
progress
,
data
,
width
)
width
-=
len
(
left
)
+
len
(
right
)
marker
=
self
.
marker
(
progress
,
data
,
width
)
fill
=
self
.
fill
(
progress
,
data
,
width
)
if
self
.
fill_left
:
marker
=
marker
.
ljust
(
width
,
fill
)
else
:
marker
=
marker
.
rjust
(
width
,
fill
)
return
left
+
marker
+
right
class
ReverseBar
(
Bar
):
'''A bar which has a marker which bounces from side to side.'''
def
__init__
(
self
,
marker
=
'#'
,
left
=
'|'
,
right
=
'|'
,
fill
=
' '
,
fill_left
=
False
,
**
kwargs
):
'''Creates a customizable progress bar.
marker - string or updatable object to use as a marker
left - string or updatable object to use as a left border
right - string or updatable object to use as a right border
fill - character to use for the empty part of the progress bar
fill_left - whether to fill from the left or the right
'''
Bar
.
__init__
(
self
,
marker
=
marker
,
left
=
left
,
right
=
right
,
fill
=
fill
,
fill_left
=
fill_left
,
**
kwargs
)
class
BouncingBar
(
Bar
):
def
update
(
self
,
progress
,
width
):
# pragma: no cover
'''Updates the progress bar and its subcomponents'''
left
,
marker
,
right
=
(
i
for
i
in
(
self
.
left
,
self
.
marker
,
self
.
right
))
width
-=
len
(
left
)
+
len
(
right
)
if
progress
.
finished
:
return
'%s%s%s'
%
(
left
,
width
*
marker
,
right
)
position
=
int
(
progress
.
value
%
(
width
*
2
-
1
))
if
position
>
width
:
position
=
width
*
2
-
position
lpad
=
self
.
fill
*
(
position
-
1
)
rpad
=
self
.
fill
*
(
width
-
len
(
marker
)
-
len
(
lpad
))
# Swap if we want to bounce the other way
if
not
self
.
fill_left
:
rpad
,
lpad
=
lpad
,
rpad
return
'%s%s%s%s%s'
%
(
left
,
lpad
,
marker
,
rpad
,
right
)
Back
|
FazBrowse Home
|
New Git URL