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.
Compare Result Example
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
Release history Release notifications | RSS feed
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.2.tar.gz
(3.5 kB
view hashes)