Show progress bar when compressing with py7zr

797 Views Asked by At

I'm using py7zr to compress a very large file.

I'm using this syntax from the example:

with py7zr.SevenZipFile('target.7z', 'w') as z:
    z.writeall('./base_dir')

Being the file very large, I would like to show a progress bar.

Since I know how to show a progress bar, both using tqdm or enlighten, specifically I want to know how to have py7zr doing the compression a bit at a time, and retrieve the status of the compression periodically from py7zr.

How can I do that?

0

There are 0 best solutions below