Paper Office
paper-xlsxAPI referencepackage.diff

PackageDiff

paper-xlsx 0.2.1 API reference

Part-by-part diff of two OOXML packages.

XML parts are compared semantically; binary parts by size and SHA-256. identical counts parts whose payloads are byte-identical (a stricter condition than semantic equivalence; byte-identical XML parts are never parsed at all).

PackageDiff(added, removed, changed, identical, equivalent)

Attributes

SCHEMA

attributeSCHEMA
= 'package_diff'

VERSION

attributeVERSION
= 1

added

attributeadded
= sorted(added)

changed

attributechanged
= sorted(changed, key=(lambda c: c.part))

clean

attributeclean

No parts added, removed, or semantically changed.

equivalent

attributeequivalent
= sorted(equivalent)

identical

attributeidentical
= sorted(identical)

removed

attributeremoved
= sorted(removed)

Functions

to_dict

functo_dict()

On this page