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.

Compare Result Example

example img

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.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ez_compare-0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for ez_compare-0.2.tar.gz
Algorithm Hash digest
SHA256 08e677d7ce8a2a8632e007aab5978132f692b75c5435b67786b5a25b0cb31100
MD5 aa2bf83e677d8f96037d85c699b91f37
BLAKE2b-256 e17261600fb0859d841925253de76533f00549aed1f2ab1d87e59a7d59e6850d

See more details on using hashes here.

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

Hashes for ez_compare-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 66ed9cfce0b4820074151f5ec7e222ec2d1356fe34275effd12954404b3a49b4
MD5 882d8d47ac7fe3cc88fa8f5d3e11cd3d
BLAKE2b-256 d65db53539dafcfa9de16e7d024c3ea0308c2099574ccc38e5cffeaba1871009

See more details on using hashes here.

Supported by

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