{ "info": { "author": "Christian Oudard", "author_email": "christian.oudard@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Text Processing :: Markup :: XML" ], "description": "==============\nHTML Tree Diff\n==============\n\nStructure aware diff of XML and HTML documents.\n\nThe intended use is to concisely show the edits that have been made in a\ndocument, so that authors of html content can review their work.\n\n\nWhat do we mean by \"HTML Tree Diff\"?\n------------------------------------\n\n* HTML:\n The inputs to the diff function are HTML documents\n* Tree:\n It considers the full XML tree structure of the inputs, not just text based changes.\n* Diff:\n The output is human-readable HTML, using and tags to show the changes.\n\n\nCommand line interface\n----------------------\n\nYou can execute htmltreediff.cli directly as a python module, passing it html files to diff::\n\n $ python -m htmltreediff.cli one.html two.html \n

\n \n one\n \n \n two\n \n

\n\n\nPython API\n----------\n\nYou can also use htmltreediff from within a python program as a library.\n\nFor HTML Changes::\n\n >>> from htmltreediff import diff\n >>> print diff('

...one...

', '

...two...

', pretty=True)\n

\n ...\n \n one\n \n \n two\n \n ...\n

\n\nAnd also for text-only changes::\n\n >>> print diff(\n ... 'The quick brown fox jumps over the lazy dog.',\n ... 'The very quick brown foxes jump over the dog.',\n ... html=False,\n ... )\n The very quick brown fox jumpsfoxes jump over the lazy dog.\n\n\nRunning the unit tests\n----------------------\n\nThe unit test suite requires the packages ``nose`` and ``coverage`` to run. Just run the ``run_tests.sh`` script, and all the tests will run, with code coverage. Code coverage should always be at 100%.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/christian-oudard/htmltreediff/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "html-tree-diff", "package_url": "https://pypi.org/project/html-tree-diff/", "platform": "any", "project_url": "https://pypi.org/project/html-tree-diff/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/christian-oudard/htmltreediff/" }, "release_url": "https://pypi.org/project/html-tree-diff/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Structure-aware diff for html and xml documents", "version": "0.1.2" }, "last_serial": 1393656, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "14d4a3b3e8ad696dcb2c93dedb67a5d3", "sha256": "bfd58f3149008570b0fc34317b299efbd1e106e3df657fd673ace471ee9895e3" }, "downloads": -1, "filename": "html-tree-diff-0.1.0.tar.gz", "has_sig": false, "md5_digest": "14d4a3b3e8ad696dcb2c93dedb67a5d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21292, "upload_time": "2010-12-20T18:36:37", "url": "https://files.pythonhosted.org/packages/f8/ae/550858424c69e7459e62d4448aa7b66b3dafb2b3d2299059c058eb24d975/html-tree-diff-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bb8e97cca5fd238e2d2d9f7ee05a5a75", "sha256": "a95784f746e43040a0113150b2f3432f57f7f837e77561a70477f25deeaa4840" }, "downloads": -1, "filename": "html-tree-diff-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bb8e97cca5fd238e2d2d9f7ee05a5a75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23483, "upload_time": "2011-02-09T23:53:31", "url": "https://files.pythonhosted.org/packages/61/4b/faa9466f733c997c5d88dbbb653885cfec8a772b7d3e4df68b8877a8e964/html-tree-diff-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "6bc02e9b3dac3fb443b3b5691b74c0f5", "sha256": "eb7f7be7c2bef85de648738b04984ccd674597acbb6bdb1a227858ab9b442fb9" }, "downloads": -1, "filename": "html-tree-diff-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6bc02e9b3dac3fb443b3b5691b74c0f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22775, "upload_time": "2011-02-16T21:37:58", "url": "https://files.pythonhosted.org/packages/16/ea/355c959c63c2bed029265f7c9b67a5361a786b22cf7aacd32ee79c5c7d6b/html-tree-diff-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6bc02e9b3dac3fb443b3b5691b74c0f5", "sha256": "eb7f7be7c2bef85de648738b04984ccd674597acbb6bdb1a227858ab9b442fb9" }, "downloads": -1, "filename": "html-tree-diff-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6bc02e9b3dac3fb443b3b5691b74c0f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22775, "upload_time": "2011-02-16T21:37:58", "url": "https://files.pythonhosted.org/packages/16/ea/355c959c63c2bed029265f7c9b67a5361a786b22cf7aacd32ee79c5c7d6b/html-tree-diff-0.1.2.tar.gz" } ] }