import zipfile # Specify the path to the ZIP file zip_path = 'app.zip' # Open the ZIP file with zipfile.ZipFile(zip_path, 'r') as zip_ref: # Extract all files and directories in the ZIP file zip_ref.extractall('.')