Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

zip2tar, a zipfile to tar convertor without intermediate files

Project Description

zip2tar is an in memory zip to tar convertor.

No intermediate files are created on disc. By default non-compressed tar is created, but can specify commandline options to get gzip, bzip2 or xz compressed tar archives.

The output filename can be set explicitly with --tar-file-name, but is normally derived by replacing “.zip” with “.tar”, “.tar.xz”, “.tar.bz2” or “.tar.gz”.

The --md5 option adds a file md5.sum to the tar file (a file with that name cannot already be in the zip file). After extracting, you can do md5sum -c md5.sum to check the files for corruption. These md5 sums are calculated from the in-memory extracted data and are not based on the zip’s CRC information.

On Python 2.7 this requires ‘pyliblzma’

usage: zip2tar [-h] [--verbose] [--xz] [--bz2] [--gz]
               [--compression-level COMPRESSION_LEVEL] [--no-datetime]
               [--tar-file-name NAME] [--md5] [--version]
               filename

in-memory zip to tar convertor

positional arguments:
  filename

optional arguments:
  -h, --help            show this help message and exit
  --verbose, -v         increase verbosity level
  --xz                  write xz compressed tar file
  --bz2                 write bzip2 compressed tar file
  --gz                  write gzip compressed tar file
  --compression-level COMPRESSION_LEVEL
  --no-datetime         don't take datetime for files from zip -> 1970-01-01
  --tar-file-name NAME  set tar file name (normally derived from .zip)
  --md5                 add a 'sum.md5' file (cannot already be in the zip)
  --version             show program's version number and exit
Release History

Release History

This version
History Node

0.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ruamel.zip2tar-0.4.tar.gz (7.5 kB) Copy SHA256 Checksum SHA256 Source Jul 7, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting