Packages the C++ implementation of google-diff-match-patch for Python, providing fast byte and string diffs, match, and patch operations. Current version 2.1.0 is the C++ implementation, replacing an earlier pure Python version (1.x). Release cadence is low; version 2.0 introduced the C++ backend.
pip install fast-diff-match-patchVerified import paths — ran on the pinned version, not inferred.
Demonstrates the three main functions: diff, match_main, patch_apply. Note that the API changed from the class-based interface in version 1.x.
Replace `from fast_diff_match_patch import diff_match_patch; dmp = diff_match_patch(); dmp.diff_main(...)` with `from fast_diff_match_patch import diff; diff(...)`.
Run `pip install --upgrade fast-diff-match-patch` and update imports as above.
Use integer comparison: if op == -1: # delete; elif op == 0: # equal; elif op == 1: # insert.
Change import to `from fast_diff_match_patch import diff` and use `diff(text1, text2)` instead of `dmp.diff_main(text1, text2)`.
Use the correct import: `from fast_diff_match_patch import diff` and call `diff(...)`.
No dependency data recorded yet.