MCPcopy Create free account
hub / github.com/scanny/python-pptx / load

Method load

src/pptx/opc/package.py:396–400  ·  view source on GitHub ↗

Return instance of `cls` loaded with parsed XML from `blob`.

(cls, partname: PackURI, content_type: str, package: Package, blob: bytes)

Source from the content-addressed store, hash-verified

394
395 @classmethod
396 def load(cls, partname: PackURI, content_type: str, package: Package, blob: bytes):
397 """Return instance of `cls` loaded with parsed XML from `blob`."""
398 return cls(
399 partname, content_type, package, element=cast("BaseOxmlElement", parse_xml(blob))
400 )
401
402 @property
403 def blob(self) -> bytes: # pyright: ignore[reportIncompatibleMethodOverride]

Callers

nothing calls this directly

Calls 1

parse_xmlFunction · 0.90

Tested by

no test coverage detected