faust.utils.terminal.spinners
Terminal progress bar spinners.
-
class
faust.utils.terminal.spinners.Spinner(file: IO = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>) → None[source]
Progress bar spinner.
-
bell = '\x08'
-
sprites = ['🌑 ', '🌒 ', '🌓 ', '🌔 ', '🌕 ', '🌖 ', '🌗 ', '🌘 ']
-
cursor_hide = '\x1b[?25l'
-
cursor_show = '\x1b[?25h'
-
hide_cursor = True
-
stopped = False
-
update() → None[source]
-
-
stop() → None[source]
-
-
write(s: str) → None[source]
-
-
begin() → None[source]
-
-
finish() → None[source]
-
-
class
faust.utils.terminal.spinners.SpinnerHandler(spinner: faust.utils.terminal.spinners.Spinner, **kwargs) → None[source]
A logger handler that iterates our progress spinner for each log.
-
emit(_record: logging.LogRecord) → None[source]
Do whatever it takes to actually log the specified logging record.
This version is intended to be implemented by subclasses and so
raises a NotImplementedError.