Re: 7z archive reader akin to zipfile?

2018-01-06 Thread Wanderer
On Wednesday, January 3, 2018 at 1:11:31 PM UTC-5, Skip Montanaro wrote: > The zipfile module is kind of cool because you can access elements of > the archive without explicitly uncompressing the entire archive and > writing the structure to disk. I've got some 7z archives I'd like to > treat the s

Re: 7z archive reader akin to zipfile?

2018-01-06 Thread Skip Montanaro
> Have you looked at libarchive (https://pypi.python.org/pypi/libarchive)? Thanks, was completely unaware of its existence. I will take a look. I've been repackaging the 7z archives as zips, but the result is 3-5x larger. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: 7z archive reader akin to zipfile?

2018-01-06 Thread Peter J. Holzer
On 2018-01-03 12:10:22 -0600, Skip Montanaro wrote: > The zipfile module is kind of cool because you can access elements of > the archive without explicitly uncompressing the entire archive and > writing the structure to disk. I've got some 7z archives I'd like to > treat the same way (read specifi

Re: 7z archive reader akin to zipfile?

2018-01-03 Thread Skip Montanaro
If you're doing this a lot, it might be worth repackaging your 7z files as > zip files. Good point. FWIW, these are the files: http://untroubled.org/spam Pretty static once a month or year is closed out... Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: 7z archive reader akin to zipfile?

2018-01-03 Thread Gregory Ewing
Skip Montanaro wrote: I've got some 7z archives I'd like to treat the same way (read specific elements without first extractingg the entire tree to disk). If you're doing this a lot, it might be worth repackaging your 7z files as zip files. -- Greg -- https://mail.python.org/mailman/listinfo/p

7z archive reader akin to zipfile?

2018-01-03 Thread Skip Montanaro
The zipfile module is kind of cool because you can access elements of the archive without explicitly uncompressing the entire archive and writing the structure to disk. I've got some 7z archives I'd like to treat the same way (read specific elements without first extractingg the entire tree to disk