kpick.classifier.classification_utils.progress.progress package

Submodules

kpick.classifier.classification_utils.progress.progress.bar module

class kpick.classifier.classification_utils.progress.progress.bar.Bar(message=None, **kwargs)

Bases: WritelnMixin, Progress

bar_prefix = ' |'
bar_suffix = '| '
empty_fill = ' '
fill = '#'
hide_cursor = True
message = ''
suffix = '%(index)d/%(max)d'
update()
width = 32
class kpick.classifier.classification_utils.progress.progress.bar.ChargingBar(message=None, **kwargs)

Bases: Bar

bar_prefix = ' '
bar_suffix = ' '
empty_fill = '∙'
fill = '█'
suffix = '%(percent)d%%'
class kpick.classifier.classification_utils.progress.progress.bar.FillingCirclesBar(message=None, **kwargs)

Bases: ChargingBar

empty_fill = '◯'
fill = '◉'
class kpick.classifier.classification_utils.progress.progress.bar.FillingSquaresBar(message=None, **kwargs)

Bases: ChargingBar

empty_fill = '▢'
fill = '▣'
class kpick.classifier.classification_utils.progress.progress.bar.IncrementalBar(message=None, **kwargs)

Bases: Bar

phases = (' ', '▏', '▎', '▍', '▌', '▋', '▊', '▉', '█')
update()
class kpick.classifier.classification_utils.progress.progress.bar.PixelBar(message=None, **kwargs)

Bases: IncrementalBar

phases = ('⡀', '⡄', '⡆', '⡇', '⣇', '⣧', '⣷', '⣿')
class kpick.classifier.classification_utils.progress.progress.bar.ShadyBar(message=None, **kwargs)

Bases: IncrementalBar

phases = (' ', '░', '▒', '▓', '█')

kpick.classifier.classification_utils.progress.progress.counter module

class kpick.classifier.classification_utils.progress.progress.counter.Countdown(message=None, **kwargs)

Bases: WriteMixin, Progress

hide_cursor = True
update()
class kpick.classifier.classification_utils.progress.progress.counter.Counter(message=None, **kwargs)

Bases: WriteMixin, Infinite

hide_cursor = True
message = ''
update()
class kpick.classifier.classification_utils.progress.progress.counter.Pie(message=None, **kwargs)

Bases: Stack

phases = ('○', '◔', '◑', '◕', '●')
class kpick.classifier.classification_utils.progress.progress.counter.Stack(message=None, **kwargs)

Bases: WriteMixin, Progress

hide_cursor = True
phases = (' ', '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
update()

kpick.classifier.classification_utils.progress.progress.helpers module

class kpick.classifier.classification_utils.progress.progress.helpers.SigIntMixin(*args, **kwargs)

Bases: object

Registers a signal handler that calls finish on SIGINT

class kpick.classifier.classification_utils.progress.progress.helpers.WriteMixin(message=None, **kwargs)

Bases: object

finish()
hide_cursor = False
write(s)
class kpick.classifier.classification_utils.progress.progress.helpers.WritelnMixin(message=None, **kwargs)

Bases: object

clearln()
finish()
hide_cursor = False
writeln(line)

kpick.classifier.classification_utils.progress.progress.spinner module

class kpick.classifier.classification_utils.progress.progress.spinner.LineSpinner(message=None, **kwargs)

Bases: Spinner

phases = ['⎺', '⎻', '⎼', '⎽', '⎼', '⎻']
class kpick.classifier.classification_utils.progress.progress.spinner.MoonSpinner(message=None, **kwargs)

Bases: Spinner

phases = ['◑', '◒', '◐', '◓']
class kpick.classifier.classification_utils.progress.progress.spinner.PieSpinner(message=None, **kwargs)

Bases: Spinner

phases = ['◷', '◶', '◵', '◴']
class kpick.classifier.classification_utils.progress.progress.spinner.PixelSpinner(message=None, **kwargs)

Bases: Spinner

phases = ['⣾', '⣷', '⣯', '⣟', '⡿', '⢿', '⣻', '⣽']
class kpick.classifier.classification_utils.progress.progress.spinner.Spinner(message=None, **kwargs)

Bases: WriteMixin, Infinite

hide_cursor = True
message = ''
phases = ('-', '\\', '|', '/')
update()

Module contents

class kpick.classifier.classification_utils.progress.progress.Infinite(*args, **kwargs)

Bases: object

property elapsed
property elapsed_td
file = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
finish()
iter(it)
next(n=1)
sma_window = 10
start()
update()
update_avg(n, dt)
class kpick.classifier.classification_utils.progress.progress.Progress(*args, **kwargs)

Bases: Infinite

property eta
property eta_td
goto(index)
iter(it)
property percent
property progress
property remaining
start()