Paper Office
paper-docxAPI referencepackage

PackageDiff

paper-docx 0.2.0 API reference

Part-by-part comparison of two OPC packages.

PackageDiff(added: Tuple[str, ...], removed: Tuple[str, ...], changed: Tuple[PartDiff, ...], byte_identical_count: int)

Attributes

added

attributeaddedTuple[str, ...]

byte_identical_count

attributebyte_identical_countint

changed

attributechangedTuple[PartDiff, ...]

is_semantically_empty

attributeis_semantically_emptybool

True when the packages hold the same parts with the same meaning.

removed

attributeremovedTuple[str, ...]

Functions

semantic_changed_parts

funcsemantic_changed_parts() -> Tuple[str, ...]

Returns

typing.Tuple[str, ...]

to_dict

functo_dict() -> dict

Returns

dict

On this page