bzip2 module for Python

Laurence Tratt tratt at dcs.kcl.ac.uk
Tue Apr 20 04:54:49 EDT 1999


In message <87zp43gaac.fsf at illusion.tui-net>
          Paul Kunysch <illume at gmx.net> wrote:

[me 'announcing' pyBZlib]
>> As I said, I am interested to know if there is a demand for this, so
>> comments are appreciated.
> IMHO it would be nice to have a module like the current "gzip", which
> handles .bz2 .gz .Z and uncompressed files transparently.

pyBZlib handles .bz2 files 'transparently' as such, in that the inputs and
outputs to the bzip2 library are simply standard .bz2 files. The two simple
test files included with pyBZlib demonstrate this by slurping .bz2 files
straight into the libraries methods :)

Do you mean you would like to see a module where you give it a file (which
could be .bz2, .gz, .zip etc), and then get an uncompressed version back
without worrying what compression type was used? Would you also want it to
automatically untar files?


Laurie




More information about the Python-list mailing list