Skip to main content

Easily to compare two text

Project description

Easy Compare

Easy to compare two text or text file by google's 'diff_match_patch' lib. By this, you can easily to make a Human readable result in html.

Install

pip install ez_compare

Usage

from ez_compare.core import TextCompare


result = TextCompare.compare("your_file_one.txt", "your_file_two.txt")

Html Result Example

from ez_compare.example import generate_compare_result


html_str = generate_compare_result("your_file_one.txt", "your_file_two.txt")
with open("example.html", "w", encoding="utf-8") as f:
    f.write(html_str)
    # then you can open 'example.html' file by you browser.

Project details


Download files

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

Source Distribution

ez_compare-0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

ez_compare-0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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