Python package equivalent to jsdiff - compare and highlight differences

I am looking for a python package that compares and highlights differences between texts like jsdiff demo, but so far get no luck.

Any suggestion is greatly appreciated.

Good morning, @Tony.Nguyen. A lot depends on which features of jsdiff you would like to use.

First place to check, the Python standard library, which has difflib. Its built-in search will help. Many of these packages are available (or partly available) for use in Client-side code.

Second place to check, Anvil’s list of server-side Python packages. No built-in search (use your browser’s Find), but everything in this list is available immediately for use by Server-side code, and can be installed locally for use by Uplink code.

Third place to check, the Python Package Index. Its built-in search will help. Most of the packages here are usable only in Uplink code.

Depending on the features you want to use, you may not find an exact match. But you will have a huge headstart on filling any gaps.

Thanks so much for that, I will have a look difflib. It looks promising