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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ez_compare-0.2.tar.gz.
File metadata
- Download URL: ez_compare-0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08e677d7ce8a2a8632e007aab5978132f692b75c5435b67786b5a25b0cb31100
|
|
| MD5 |
aa2bf83e677d8f96037d85c699b91f37
|
|
| BLAKE2b-256 |
e17261600fb0859d841925253de76533f00549aed1f2ab1d87e59a7d59e6850d
|
File details
Details for the file ez_compare-0.2-py3-none-any.whl.
File metadata
- Download URL: ez_compare-0.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66ed9cfce0b4820074151f5ec7e222ec2d1356fe34275effd12954404b3a49b4
|
|
| MD5 |
882d8d47ac7fe3cc88fa8f5d3e11cd3d
|
|
| BLAKE2b-256 |
d65db53539dafcfa9de16e7d024c3ea0308c2099574ccc38e5cffeaba1871009
|