Skip to main content

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

Metadata

Release files for adiff 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adiff 2.0.1
File Size Uploaded Provenance Actions
adiff-2.0.1.tar.gz 8.5 kB Without provenance Details for adiff-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adiff 2.0.1
File Interpreter ABI Platform Actions
adiff-2.0.1-py3-none-any.whl Python 3 none any Details for adiff-2.0.1-py3-none-any.whl

Total release size: 16.4 kB

Release files / adiff-2.0.1.tar.gz

Download URL adiff-2.0.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a8a11f15094229a051de608bf7dc6aae1c2d10990da606d0cd7b896564964f07
BLAKE2b-256 checksum
How to use checksums
e8bb04505786aaf5ea2f7ff6fc0b69bee7d575d7d732e47c28cb3b1bad43775e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / adiff-2.0.1-py3-none-any.whl

Download URL adiff-2.0.1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abe1cc1c8588a61cceb8318e5dc6a4dea4f7d7d400a9b70326245d21cf034a43
BLAKE2b-256 checksum
How to use checksums
3651bd98dcd7ff3aa1a11bf41f2201ec8b20d3fa20eb0ad2d7ac3cdaa2626b05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for adiff 2.0.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page