# Extract all contents from zip file import zipfile with zipfile.ZipFile('filename', 'r') as myzip: #'r' reads file, 'w' writes file myzip.extractall() # The zipfile will be extracted and content will be available in your working # directory.