code: def _hash_file(self, path):
          
  
          m = hashlib.md5()
          with open(path, "rb") as f:
              while True:
                  buf = f.read(128)
                  if not buf:
                      break
                  m.update(buf)
          return m.hexdigest()
docs: Compute and md5 hash for file
  
          :returns: hexadecimal md5