import zipfilez = zipfile.ZipFile(filename, 'r')for i in z.infolist(): print i.file_size, i.header_offset