paper-pptxAPI referenceopc.serialized
GuardedZipReader
paper-pptx 0.2.0 API reference
Validate and stream every member of an already-open ZipFile.
Construction fully validates the archive and caches every member's bytes. This makes an ordinary
Presentation() open share the same validation, including for members not reachable from OPC
relationships.
GuardedZipReader(zip_file: ZipFile)Attributes
order
attributeorderTuple[str, ...]Member names in central-directory order.
Functions
read
funcread(name: str) -> bytesReturn validated bytes for member name.
paramnamestrReturns
bytesread_all
funcread_all() -> Tuple[Dict[str, bytes], List[str]]Return a copy of validated parts and their archive order.
Returns
typing.Tuple[typing.Dict[str, bytes], typing.List[str]]