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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

eric6_diff_merge-1.0.4-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file eric6_diff_merge-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: eric6_diff_merge-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

File hashes

Hashes for eric6_diff_merge-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b9ff054425f1dfa6ea67adde15ac132af9e9d6c8dc3a960d6359fcb86346feb9
MD5 c34be6b17349ed58e3988d4891fba79d
BLAKE2b-256 5d065492035185de98a87ee064cddde1bf0f116726f1120986899c1411e7d98d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page