Hello.
I often compress something or store old game installers from GOG or ISOs in 7z files so to know how much I'm saving I've made a Python 3 script/module that using external 7z.exe (just '7z' on Linux) sums up and neatly displays it all. I've called it zipsavings.
GitHub: https://github.com/FRex/zipsavings
Example (more examples in README on GitHub):
Code:
$ zipsavings ./test/dracula.*
ERROR: ./test/dracula.txt : Can not open the file as archive.
There were 1 errors.
END OF ERRORS.
archive |unpacked |packed |saved |saved_percent|file_count|type|size
------------------|---------|---------|---------|-------------|----------|----|---------
./test/dracula.7z |846.9 KiB|268.2 KiB|578.6 KiB|68.32% |1 |7z |268.4 KiB
./test/dracula.zip|846.9 KiB|310.4 KiB|536.4 KiB|63.34% |1 |zip |310.6 KiB