Skip to main content

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


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.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

StrDiffSynch-1.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file StrDiffSynch-1.1.0.tar.gz.

File metadata

  • Download URL: StrDiffSynch-1.1.0.tar.gz
  • Upload date:
  • Size: 2.2 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

Hashes for StrDiffSynch-1.1.0.tar.gz
Algorithm Hash digest
SHA256 06e981df45b6077aa20fcd8ce16eb8f92664a04624a5bd7295bcab059b138766
MD5 b4c712ff50a9e1bbad32d75094ab4ad8
BLAKE2b-256 fa16014cb510add5ef94a52657961ee4f6aa0cd0102d8bffd127dfdc208c0368

See more details on using hashes here.

File details

Details for the file StrDiffSynch-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: StrDiffSynch-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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

Hashes for StrDiffSynch-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c0c72f5ffae0129b6cff9e6b3b53fb8f91fe5a5d17147d0308e103a84f2662
MD5 5a3047de495077f8cbd2b3ce8337e88f
BLAKE2b-256 40f60e6d6bd1fb8c2bdea5a13c4457c32ec6d79d2810fe0a4c1afd4ac577f095

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