Skip to main content

Introduction

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

Metadata

Release files for xia-diff-match-patch 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xia-diff-match-patch 0.0.3
File Size Uploaded Provenance
xia-diff-match-patch-0.0.3.tar.gz 20.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xia-diff-match-patch 0.0.3
File Interpreter ABI Platform
xia_diff_match_patch-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 40.1 kB

Release files / xia-diff-match-patch-0.0.3.tar.gz

Download URL xia-diff-match-patch-0.0.3.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a82d20729d1c7ffab0852b937fc98178c33bc84c5a59a765132bbfdda3f910a4
BLAKE2b-256 checksum
How to use checksums
e62372c6e3d312e825e6e9363d463d6ca4e057f1619bccf13a4c0a6694303435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / xia_diff_match_patch-0.0.3-py3-none-any.whl

Download URL xia_diff_match_patch-0.0.3-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
664e1d104c1a47bbb0462c2897c60419d6687e8bc96ffdb80cc892142dae48d2
BLAKE2b-256 checksum
How to use checksums
628abda3f09ad9f5da478c891be4da2d7a26464982dfdbcdbc695f7f57c27852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for xia-diff-match-patch 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page