Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

adiff

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adiff

Advanced XML Comparison CLI Tool

pipPyPI
Version
2.0.1
Weekly downloads
202
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts