python diff merge module copy from eric6.
pip install eric6_diff_merge
from eric6_diff_merge import Eric6Diff
def main():
diff = Eric6Diff("./speedtext1.txt",
"./speedtext2.txt",
output="./result.txt")
diff.on_diff()
if __name__ == "__main__":
main()
speedtext1.txt
== Capital-Saratoga ==
aaa
bbb
ccc
ddd
speedtext2.txt
== Capital-Saratoga ==
abc
bbb
ccc
--- ./speedtext1.txt Thu Dec 12 03:08:59 2019
+++ ./speedtext2.txt Thu Dec 12 03:08:59 2019
@@ -1,7 +1,5 @@
== Capital-Saratoga ==
-aaa
+abc
bbb
ccc
-ddd
-
If you found the same module, please inform me in issue, thanks!