zip everything in folder and withing folders code example
Example 1: python zip folder
import shutil
shutil.make_archive(output_filename, 'zip', dir_name)
Example 2: how to zip a folder but ignore some files
zip -r myarchive.zip dir1 -x dir1/ignoreDir1/**\* dir1/ignoreDir2/**\*