I want to compress a directory recursively into a password encrypted 7zip archive in a platform-independent way.
I considered using these approaches, but none of them I found acceptable:
Calling 7zip executable directly using
subprocess
- This works great, but it's not platform-independent.Using the
pylzma
/py7zlib
modules - They work only on data already in memory, I can't imagine how to use them to compress directories.