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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for xia-diff-match-patch-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a82d20729d1c7ffab0852b937fc98178c33bc84c5a59a765132bbfdda3f910a4 |
|
MD5 | 8180802741a3ce13a83c647ee178e06c |
|
BLAKE2b-256 | e62372c6e3d312e825e6e9363d463d6ca4e057f1619bccf13a4c0a6694303435 |
Close
Hashes for xia_diff_match_patch-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 664e1d104c1a47bbb0462c2897c60419d6687e8bc96ffdb80cc892142dae48d2 |
|
MD5 | c589935bc1306715069a0c1837f4fc52 |
|
BLAKE2b-256 | 628abda3f09ad9f5da478c891be4da2d7a26464982dfdbcdbc695f7f57c27852 |