python compress excel file code example
Example: compress excel file in python
#!/usr/bin/env python3
import zipfile
zip_file = zipfile.ZipFile('file_name.zip', 'w')
zip_file.write('/tmp/hello.txt')
zip_file.close()
#!/usr/bin/env python3
import zipfile
zip_file = zipfile.ZipFile('file_name.zip', 'w')
zip_file.write('/tmp/hello.txt')
zip_file.close()