Skip to main content

python diff merge tool.

Project description

eric6_diff_merge

python diff merge module copy from eric6.

install:

pip install eric6_diff_merge

useage:

from eric6_diff_merge import Eric6Diff

def main():

    diff = Eric6Diff("./speedtext1.txt",
                     "./speedtext2.txt",
                     output="./result.txt")

    diff.on_diff()

if __name__ == "__main__":
    main()

input :

speedtext1.txt

== Capital-Saratoga ==
aaa
bbb
ccc
ddd

speedtext2.txt

== Capital-Saratoga ==
abc
bbb
ccc

output : result.txt

--- ./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

-

the same module:

If you found the same module, please inform me in issue, thanks!

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for eric6-diff-merge, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size eric6_diff_merge-1.0.4-py3-none-any.whl (17.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page