python-archiveSimple library that provides a common interface for extracting zip and tar archives | |
Download |
python-archive Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Gary Wilson Jr.
- Publisher web site:
- http://code.google.com/u/gary.wilson/
python-archive Tags
python-archive Description
Simple library that provides a common interface for extracting zip and tar archives The python-archive package provides a simple, pure-Python interface for handling various archive file formats. Currently, archive extraction is the only supported action. Supported file formats include: * Zip formats and equivalents: .zip, .egg, .jar. * Tar and compressed tar formats: .tar, .tar.gz, .tgz, .tar.bz2, .tz2.Example usageUsing the Archive class:from archive import Archivea = Archive('files.tar.gz')a.extract()Using the extract convenience function:from archive import extract# Extract in current directory.extract('files.tar.gz')# Extract in directory 'unpack_dir'.extract('files.tar.gz', 'unpack_dir') Requirements: · Python
python-archive Related Software