with ZipFile('foo.zip', 'r') as f: names = f.namelist() print names # ['file1', 'folder1/file2', ...]