Paper Office
paper-pptxAPI referencepackage

PackageDiff

paper-pptx 0.2.0 API reference

Part-by-part semantic diff between two packages. Schema "paper-package-diff" v1.

deltas holds one :class:PartDelta per package member that was added, removed, or semantically changed; it is empty when the two packages are equivalent.

PackageDiff(deltas: Tuple[PartDelta, ...])

Attributes

deltas

attributedeltasTuple[PartDelta, ...]

is_empty

attributeis_emptybool

True when no part changed. Check it to recognize a no-op save.

Functions

to_dict

functo_dict() -> dict

Return the package diff as a JSON-ready dict under the paper-package-diff schema.

Returns

dict

On this page