def md5_stats_file(path): with open(path, "rb", 8192) as fp: digest_hex, diges_64, size = boto.s3.key.compute_md5(fp) return digest_hex, diges_64, size