Skip to main content

Python library for comparing HTML snippets

Project description

html-compare

Python library for comparing HTML snippets. Intentionally lacking any external dependencies. Ported from Django internal testing utilities here.

Usage

def test_html_equals():
    # Attributes should be significant, but whitepsace and quote-style should not be significant
    assert html_equal("<a data-foo='bar'>Hi\n</a>", '<a data-foo="bar"> Hi </a>')

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

python_html_compare-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

python_html_compare-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file python_html_compare-0.1.0.tar.gz.

File metadata

  • Download URL: python_html_compare-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for python_html_compare-0.1.0.tar.gz
Algorithm Hash digest
SHA256 578c56fd301897762764b84d629534f9a5ee36ca2ba17c44ed257532a1be731e
MD5 68cde642eabb91502898d9f97ec4bb5a
BLAKE2b-256 da39545058de8da3e462981ac8c57386899ee0a7bc6991ae6a0299efa248cd3c

See more details on using hashes here.

File details

Details for the file python_html_compare-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_html_compare-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a712bdeeb235817ca00d66db46a3e045fb32cce66e7b6318cda80e0f8200f42
MD5 91526bb498bb0846ee5876df2caf13a8
BLAKE2b-256 d1fe827ad97e96b8e02c1df34638590aac2735a7d54fd82d5851deeacd54dd72

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