Produces readable word-level diffs between two pieces of text.
Extracted from a larger codebase where it had grown organically.
pip install text-difffrom text_diff import textDiff
result = textDiff("example")
print(result)- No runtime dependencies outside the standard library.
- Tested on Python 3.9 and newer.
MIT