Python can work directly with data in zip files. You can look at the list of items in the directory and work with the data files themselves.
1 2 3 4 5 6 7
import zipfile z = zipfile.ZipFile("zipfile.zip", "rb") for filename in z.namelist(): print filename bytes = z.read(filename) print len(bytes)
The ZipFile module does not currently handle ZIP files which have appended comments, or multi-disk ZIP files.