Prev: lpr via subprocess in 2.4
Next: parsing a c project
From: Hallvard B Furuseth on 4 Aug 2010 06:15 Is there an equivalent of zipfile.py for .7z archives? I have one which extracts an archive member by running 7z e -so, but that's a *slow* way to read one file at a time. Google found me some python interfaces to lzma, but apparently they only handle single compressed files, not .7z archives. (Actually another archive format would be fine if it is competitive. I'm just looking to compress my .zips better. I need a Python module to extract members reasonably fast, but slow compression would be OK.) -- Hallvard
From: Giampaolo Rodolà on 4 Aug 2010 07:32 2010/8/4 Hallvard B Furuseth <h.b.furuseth(a)usit.uio.no>: > Is there an equivalent of zipfile.py for .7z archives? > I have one which extracts an archive member by running 7z e -so, > but that's a *slow* way to read one file at a time. > > Google found me some python interfaces to lzma, but apparently they > only handle single compressed files, not .7z archives. > > (Actually another archive format would be fine if it is competitive. > I'm just looking to compress my .zips better. I need a Python module > to extract members reasonably fast, but slow compression would be OK.) > > -- > Hallvard > -- > http://mail.python.org/mailman/listinfo/python-list > http://bugs.python.org/issue5689 --- Giampaolo http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/
From: Hallvard B Furuseth on 4 Aug 2010 08:11 Giampaolo Rodol� <g.rodola(a)gmail.com> writes: > 2010/8/4 Hallvard B Furuseth <h.b.furuseth(a)usit.uio.no>: >> Is there an equivalent of zipfile.py for .7z archives? >> I have one which extracts an archive member by running 7z e -so, >> but that's a *slow* way to read one file at a time. >> >> Google found me some python interfaces to lzma, but apparently they >> only handle single compressed files, not .7z archives. >> >> (Actually another archive format would be fine if it is competitive. >> I'm just looking to compress my .zips better. �I need a Python module >> to extract members reasonably fast, but slow compression would be OK.) > > http://bugs.python.org/issue5689 [For lzma/xz compressed tar archives] Thanks, but extraction of individual members from .tar.xz looks inherently slow. To locate the member, you need to decompress the entire portion of the archive preceding the member. -- Hallvard
|
Pages: 1 Prev: lpr via subprocess in 2.4 Next: parsing a c project |