paper-pptxAPI referenceinspect
TextInspection
paper-pptx 0.2.0 API reference
Inspection payload for one slide. .to_dict() is deterministic (golden-tested).
TextInspection(part: str, blocks: Tuple[TextBlock, ...] = tuple())Attributes
blind_region_count
attributeblind_region_countintNumber of blocks whose effective values are unresolvable by design (see TextBlock).
blocks
attributeblocksTuple[TextBlock, ...]= field(default_factory=tuple)part
attributepartstrFunctions
to_dict
functo_dict() -> dictReturn the whole inspection as a JSON-ready dict stamped with its schema name and version.
Hand this to anything outside Python that needs the text of a part.
Returns
dict