pydiffx is a Python implementation of the DiffX specification.
DiffX is a proposed specification for a structured version of Unified Diffs that contains metadata, standardized parsing, multi-commit diffs, and binary diffs, in a format compatible with existing diff parsers. Learn more about DiffX.
This module is a reference implementation designed to make it easy to read and write DiffX files in any Python application.
pydiffx can be installed on Python 2.7 and 3.6+ using pip:
pip install -U pydiffx
DiffX files can be managed through one of two sets of interfaces:
A DiffX Object Model (
pydiffx.dom.objects.DiffX) for treating DiffX files as a mutable data structure.
To get familiar with these interfaces, follow our tutorials:
- Module and Class References
- Release Notes