One of two strings can change into the other when absorbing the difference among them. Vice versa.
Project description
StrDiffSynch
One of two strings can change into the other when absorbing the difference among them.
import json
from StrDiffSynch import StrDiff
data1 = json.dumps({"name": "davis", "other": {"age": 18}})
data2 = json.dumps({"name": "davis", "age": 18})
diff = StrDiff(data1, data2)
assert data1 + diff == data2
assert diff + data1 == data2
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
StrDiffSynch-1.0.1.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file StrDiffSynch-1.0.1.tar.gz
.
File metadata
- Download URL: StrDiffSynch-1.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30eaf37d031e6cf30dcf7ebc2192fb4db899010fd3f50dc2361a0db31f60ed20 |
|
MD5 | d2186f07689a36ed2f1a7a43f272852c |
|
BLAKE2b-256 | 0b6089f22da23e724fed681a92788923db31aa4a475d82908973bbee788d5cd3 |
File details
Details for the file StrDiffSynch-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: StrDiffSynch-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d068e66810ca696f085fc3a0a137ec78f4df17a0f1213dcc8bf1928b4b825310 |
|
MD5 | ee668bb85324ef47eb35a48c1583b9c5 |
|
BLAKE2b-256 | 296bf59124176b266fddb9673e4d5cfb8f3f0c05d38b6aec43ff9a6792d7d6e0 |