def run(self):
        dot_count = 0

        while self.spinning.is_set():
            sys.stdout.write(next(self.spinner))  # write the next character
            sys.stdout.flush()                # flush stdout buffer (actual character display)
            sys.stdout.write('\b')            # erase the last written char
            time.sleep(self.spin_interval)
            dot_count += 1
            if dot_count >= self.dot_max:
                sys.stdout.write('.')  # write the next character
                dot_count = 0

        sys.stdout.write('\n')
dataset/ETHPy150Open StackHut/stackhut/stackhut_toolkit/toolkit_utils.py/Spinner.run/original