This release is a pre-release and may not be stable for production use.
This module allows for order agnostic comparison of XML data. It will parse files to determine if they are a match while ignoring the order of attributes or elements .
Dependencies: ElementTree
Sample usage:
#open two files, parse with ElementTree, and pass to xml_diff function
oFile1 = open(r’C:test1.xml’, ‘r’)
oFile2 = open(r’C:test2.xml’, ‘r’)
oXml1 = ET.parse(oFile1)
oXml2 = ET.parse(oFile2)
print xml_diff(oXml1, oXml2)
#pass in xml as strings
sOrder1 = ‘<ItalianFood><Pizza Sauce=”Red” Cheese=”Mozzarella” Crust=”Thin”><Quantity>2</Quantity></Pizza><Pizza Sauce=”OliveOil” Cheese=”Feta” Crust=”Thin”><Quantity>1</Quantity></Pizza></ItalianFood>’
sOrder2 = ‘<ItalianFood><Pizza Sauce=”OliveOil” Cheese=”Feta” Crust=”Thin”><Quantity>1</Quantity></Pizza><Pizza Sauce=”Red” Cheese=”Mozzarella” Crust=”Thin”><Quantity>2</Quantity></Pizza></ItalianFood>’
print xml_diff(sOrder1, sOrder2)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>.
Metadata
Release files for PizzaPyDiff 0.52dev
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PizzaPyDiff-0.52dev.zip | 3.7 kB | Without provenance | Details for PizzaPyDiff-0.52dev.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PizzaPyDiff-0.52dev.win32.exe | Details for PizzaPyDiff-0.52dev.win32.exe |
Total release size: 204.2 kB
Release files / PizzaPyDiff-0.52dev.zip
| Download URL | PizzaPyDiff-0.52dev.zip |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8325b6b06b4d38359671e7e634753089a68e38529de954ba39d7afc7a7135817
|
|
BLAKE2b-256 checksum How to use checksums |
0d31d8d54d9deae6c470c6b3248e19b2c401bf35040db086ec3d5e2f0f7591a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / PizzaPyDiff-0.52dev.win32.exe
| Download URL | PizzaPyDiff-0.52dev.win32.exe |
|---|---|
| Size | 200.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddefc99806d931fab5c3f501630d2374b469c8473f2fe4b44f0259d7b7da06c2
|
|
BLAKE2b-256 checksum How to use checksums |
857a44b2a9c01bfe9166db8d667176ee1a62090ed2ba0e90161869bf4cefaebf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PizzaPyDiff 0.52dev
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.