ez-compare-0.2
توضیحات
Easily to compare two text
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ez-compare-0.2 |
| نام | ez-compare |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | kailyn |
| ایمیل نویسنده | cnkailyn@gmail.com |
| آدرس صفحه اصلی | https://github.com/cnkailyn/ez_compare |
| آدرس اینترنتی | https://pypi.org/project/ez-compare/ |
| مجوز | - |
# 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
```commandline
pip install ez-compare
```
## Usage
```python
from ez_compare.core import TextCompare
result = TextCompare.compare("your_file_one.txt", "your_file_two.txt")
```
## Html Result Example
```python
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.
```
نیازمندی
| مقدار | نام |
|---|---|
| ==20200713 | diff-match-patch |
نحوه نصب
نصب پکیج whl ez-compare-0.2:
pip install ez-compare-0.2.whl
نصب پکیج tar.gz ez-compare-0.2:
pip install ez-compare-0.2.tar.gz