Skip to main content

A simple one way diff tool

Project description

ShortDiff

This is a Python implementation of a diff algorithm. It's purpose is to produce one way and as short as possible patch to go from a file to another. This is useful for keeping history of modifications of a text file without keeping a copy of each state (this is the easy part of version control). This produce shorter patch than any output from the GNU diff tool. By the way it is one way witch means the patch to go from A to B is not usable to go from B to A.

Disclaimer

Since it is a pure python script and it is a O(N*M) (where N and M are the number of line of each file) in time complexity it is not very performant. You should not use it in any serious project. As for me I wrote it for educational purpose and I use it in a really small scale project.

Still for educational project there are more naive version in the archive directory. The final module is a refinment of these.

Project details


Download files

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

Source Distribution

ShortDiff-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

ShortDiff-0.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page