Advanced XML Comparison CLI Tool
Project description
adiff - Advanced XML Comparison CLI Tool
Overview
adiff is a Python-based command-line tool that compares one or more XML files against a main reference XML file. It highlights differences, supports filtering, and can generate well-formatted Excel reports for analysis.
Features
- Compare one or more XML files against a reference XML
- Detect missing or extra tags/attributes
- Filter by tag label (e.g., CAMERA, SENSOR, etc.)
- Output console-friendly tabulated results
- Export to Excel with color-coded formatting
- Options to show only differences for large datasets
Prerequisites
On Ubuntu/Debian Systems:
sudo apt update
sudo apt install python3 python3-pip
Installation via pip
pip install adiff
Usage Examples
1. Basic Comparison
adiff main-update.xml *.xml
Compare all XML files in the current directory against main-update.xml.
2. Compare Specific Files
adiff main-update.xml file1.xml file2.xml file3.xml
3. Show Only Differences
adiff main-update.xml *.xml --differences-only
4. Filter by Label
adiff main-update.xml *.xml --filter-label "CAMERA"
5. Excel Output
adiff main-update.xml *.xml --excel comparison_results.xlsx
Generates a colorful Excel file with formatted comparison results.
6. Excel Output - Differences Only
adiff main-update.xml *.xml --excel differences.xlsx --differences-only
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adiff-2.0.1.tar.gz.
File metadata
- Download URL: adiff-2.0.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8a11f15094229a051de608bf7dc6aae1c2d10990da606d0cd7b896564964f07
|
|
| MD5 |
e3e5591aef540533959123e0e9821269
|
|
| BLAKE2b-256 |
e8bb04505786aaf5ea2f7ff6fc0b69bee7d575d7d732e47c28cb3b1bad43775e
|
File details
Details for the file adiff-2.0.1-py3-none-any.whl.
File metadata
- Download URL: adiff-2.0.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abe1cc1c8588a61cceb8318e5dc6a4dea4f7d7d400a9b70326245d21cf034a43
|
|
| MD5 |
eb3869f8610da5c950f6ef708a33e254
|
|
| BLAKE2b-256 |
3651bd98dcd7ff3aa1a11bf41f2201ec8b20d3fa20eb0ad2d7ac3cdaa2626b05
|