code: def parse_verbose(self, line):
          
          try:
              logging.debug(line)
              (host, pings) = line.split(' : ')
              cnt = 0
              lost = 0
              times = []
              pings = pings.strip().split(' ')
              cnt = len(pings)
              for latency in pings:
                  if latency == '-':
                      continue
                  times.append(float(latency))
  
              lost = cnt - len(times)
              if lost:
                  loss = lost / float(cnt)
              else:
                  loss = 0.0
  
              rv = {
                  'host': host.strip(),
                  'cnt': cnt,
                  'loss': loss,
                  'data': times,
                  }
              if times:
                  rv['min'] = min(times)
                  rv['max'] = max(times)
                  rv['avg'] = sum(times) / len(times)
                  rv['last'] = times[-1]
              return rv
  
          except Exception as e:
              logging.error("failed to get data: {}".format(e))
docs: parse output from verbose format