Paper Office
paper-pptxAPI referencediff

DeckDiff

paper-pptx 0.2.0 API reference

The whole comparison. .to_dict() is deterministic and goldenable.

DeckDiff(detail: str, slides_added: Tuple[SlideRef, ...] = (), slides_removed: Tuple[SlideRef, ...] = (), slides_moved: Tuple[MovedSlide, ...] = (), slide_changes: Tuple[SlideChange, ...] = tuple(), package_changes: tuple = tuple())

Attributes

detail

attributedetailstr

is_empty

attributeis_emptybool

True when the two decks match. Check it to skip reporting a no-op edit.

package_changes

attributepackage_changestuple
= field(default_factory=tuple)

slide_changes

attributeslide_changesTuple[SlideChange, ...]
= field(default_factory=tuple)

slides_added

attributeslides_addedTuple[SlideRef, ...]
= ()

slides_moved

attributeslides_movedTuple[MovedSlide, ...]
= ()

slides_removed

attributeslides_removedTuple[SlideRef, ...]
= ()

Functions

to_dict

functo_dict() -> dict

Return the whole diff as a JSON-ready dict stamped with its schema and version.

Returns

dict

On this page