0

I am using diffr library to display the differences between two files. The advantage of it is the nice display to show the comparisons side by side, which makes it is easier to see the differences for the non-techy end-users.

I found this link, but this is not exactly what I want.

Is there any library in Python 3 equivalent to R's diffr?

An example to how diffr output looks like can be found in this link: In R, find whether two files differ

1 Answer 1

1

You should take a look at difflib, you could do something like this

difflib.SequenceMatcher(None, file1.read(), file2.read())
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.