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 details)

Uploaded Source

Built Distribution

xia_diff_match_patch-0.0.3-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file xia-diff-match-patch-0.0.3.tar.gz.

File metadata

  • Download URL: xia-diff-match-patch-0.0.3.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for xia-diff-match-patch-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a82d20729d1c7ffab0852b937fc98178c33bc84c5a59a765132bbfdda3f910a4
MD5 8180802741a3ce13a83c647ee178e06c
BLAKE2b-256 e62372c6e3d312e825e6e9363d463d6ca4e057f1619bccf13a4c0a6694303435

See more details on using hashes here.

File details

Details for the file xia_diff_match_patch-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for xia_diff_match_patch-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 664e1d104c1a47bbb0462c2897c60419d6687e8bc96ffdb80cc892142dae48d2
MD5 c589935bc1306715069a0c1837f4fc52
BLAKE2b-256 628abda3f09ad9f5da478c891be4da2d7a26464982dfdbcdbc695f7f57c27852

See more details on using hashes here.

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