code: def report_progress(self):
          
          percent = self.calc_percent()
          total = format_bytes(self._total)
  
          speed = self.calc_speed()
          total_speed_report = '{0} at {1}'.format(total, speed)
  
          report = '\r{0: <56} {1: >30}'.format(percent, total_speed_report)
  
          if self._finished:
              print(report)
          else:
              print(report, end="")
          sys.stdout.flush()
docs: Report download progress.