code: def update(self, n=1):
          
          if n < 1:
              n = 1
          self.n += n
  
          delta_it = self.n - self.last_print_n
          if delta >= self.miniters:
              # We check the counter first, to reduce the overhead of time.time()
              cur_t = time.time()
              if cur_t - self.last_print_t >= self.mininterval:
                  self.sp.print_status(format_meter(self.n, self.total, cur_t-self.start_t, self.ncols, self.prefix, self.unit, self.unit_format, self.ascii))
                  if self.dynamic_miniters: self.miniters = max(self.miniters, delta_it)
                  self.last_print_n = self.n
                  self.last_print_t = cur_t
docs: Manually update the progress bar, useful for streams such as reading files (set init(total=filesize) and then in the reading loop, use update(len(current_buffer)) )
  
          Parameters
          ----------
          n  : int
              Increment to add to the internal counter of iterations.