selinon.executor.progress module

Indicate progress and sleep for given time.

class selinon.executor.progress.Progress[source]

Bases: object

Indicate progress and sleep for given time.

classmethod indicate(iterable, show_progressbar=True, info_text=None)[source]

Indicate progress on iterable.

Parameters:
  • iterable – iterable that is used to iterate on progress
  • show_progressbar – if True, there is shown a simple ASCII art spinning
  • info_text – text that is printed on the line (progressbar follows)
classmethod sleep(wait_time, sleep_time, info_text=None, show_progressbar=True)[source]

Wait and sleep for the given amount of time.

Parameters:
  • wait_time – time to wait in this method in total
  • sleep_time – time between periodic checks (parameter to sleep() function)
  • show_progressbar – if True, there is shown a simple ASCII art spinning
  • info_text – text that is printed on the line (progressbar follows)