Skip to main content

Diff and patch zip archives whose contents do not have the same names.

Project description

zxd3 uses heuristics to try to diff two zips whose contents are related but not named the same. Zip contents never hit the disc except when recreating the target at the final step of -p.

zxd3 patches are not usable by the xdelta3 standalone utility.


zxd3 [-h] [-c | -c2 patch.zxd3 | -p patch.zxd3 out-dir]

optional arguments:
-h, –help
show this help message and exit
create a patch that transforms source zip into target zip and extracts them. Patch will be named as
-c2 patch.zxd3
create a patch that transforms source zip into target zip and extracts them
-p patch.zxd3 out-dir
apply a patch to source zip and extract contents of the patch to out-dir

Memory Requirements

Required memory is at least 256mb, possibly more. Each of the 2 zips has a sliding window of 64mb that it fills to create xdelta3 diffs, and the xdelta3 module doesn’t consume memoryview, so the ‘usable’ part of those views has to be converted to bytes array during encoding and decoding.


zxd3 requires python 3.5 or later, mostly because the xdelta3 pypi library requires it.

The source for this project is available here.

The project can be installed on linux machines by installing pip3 and running pip3 install –user zxd3 or pip3 install –user for the latest master.

Since the xdelta3 pypi package has no windows version, this program doesn’t work there currently.


xdelta-dir-patcher was a inspiration
xdelta3 python bindings, library I use
xdelta, which made the above projects possible
natsort, library I use

Project details

Download files

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

Files for zxd3, version 1.2.5
Filename, size File type Python version Upload date Hashes
Filename, size zxd3-1.2.5-py3-none-any.whl (13.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size zxd3-1.2.5.tar.gz (13.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page