zip = zipfile.ZipFile(‘file’, ‘mode’)
open a zip archive for manipulation
zip.namelist()
list files in zip archive
zip.infolist()
list metadata of the files in the archive
zip.getinfo(x)
get metadata for specific file
zip.read(x)
read file inside zip archive
(b’string’)
specify string as bytecode. bytecode is an attribute of the code object, among many other attributes
zip.extract(x)
extract x file from the archive
zip.extractall()
extract all files from zip archive
zip.close()
close zip file