python zipfile compress folder code example
Example 1: python zip folder
import shutil
shutil.make_archive(output_filename, 'zip', dir_name)
Example 2: zip a directory in python
shutil.make_archive(output_filename, 'zip', dir_name)
import shutil
shutil.make_archive(output_filename, 'zip', dir_name)
shutil.make_archive(output_filename, 'zip', dir_name)