Skip to main content

No project description provided

Project description

Current version is a wrap of Google’s project: https://github.com/google/diff-match-patch

  • Installation:

pip install xia-diff-match-patch
  • Usage

apply_patches function takes a series patched files as arguments, sorted by its priorities.

from xia_diff_match_patch import apply_patches

base = "Line 1\n"
a1 = "Line 1\nLine2\n"
a2 = "Line 1\n\nCode 1\nCode 2\nCode 3\n"
a3 = "Line 3\n"

print(apply_patches(base, a1, a2, a3))

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

xia-diff-match-patch-0.0.3.tar.gz (20.1 kB view hashes)

Uploaded Source

Built Distribution

xia_diff_match_patch-0.0.3-py3-none-any.whl (20.0 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