With what module can Python handel *.tar.gz file?

Alex Martelli aleax at aleax.it
Fri Nov 22 04:37:17 EST 2002


Erik Max Francis wrote:

> You wrote:
> 
>> Buddies, I have a file named  ***.tar.gz, and I want to gunzip it with
>> Python. With which modules can I accomplish this task? And how to?
> 
> There's a gzip module.

Yep, gzip is in the standard library, but tar unfortunately isn't (yet).

http://www.faqts.com/knowledge_base/view.phtml/aid/4395/fid/538
or Zope's tar.py can perhaps help.  Alternatively:
http://mail.python.org/pipermail/python-list/2001-August/060018.html


Alex




More information about the Python-list mailing list