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

Method _load

src/pptx/opc/package.py:158–162  ·  view source on GitHub ↗

Return the package after loading all parts and relationships.

(self)

Source from the content-addressed store, hash-verified

156 PackageWriter.write(pkg_file, self._rels, tuple(self.iter_parts()))
157
158 def _load(self) -> Self:
159 """Return the package after loading all parts and relationships."""
160 pkg_xml_rels, parts = _PackageLoader.load(self._pkg_file, cast("Package", self))
161 self._rels.load_from_xml(PACKAGE_URI, pkg_xml_rels, parts)
162 return self
163
164 @lazyproperty
165 def _rels(self) -> _Relationships:

Callers 4

openMethod · 0.45
loadMethod · 0.45

Calls 2

load_from_xmlMethod · 0.80
loadMethod · 0.45

Tested by 2