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

Method _load

src/pptx/opc/package.py:192–199  ·  view source on GitHub ↗

Return (pkg_xml_rels, parts) pair resulting from loading pkg_file.

(self)

Source from the content-addressed store, hash-verified

190 return cls(pkg_file, package)._load()
191
192 def _load(self) -> tuple[CT_Relationships, dict[PackURI, Part]]:
193 """Return (pkg_xml_rels, parts) pair resulting from loading pkg_file."""
194 parts, xml_rels = self._parts, self._xml_rels
195
196 for partname, part in parts.items():
197 part.load_rels_from_xml(xml_rels[partname], parts)
198
199 return xml_rels[PACKAGE_URI], parts
200
201 @lazyproperty
202 def _content_types(self) -> _ContentTypeMap:

Callers

nothing calls this directly

Calls 1

load_rels_from_xmlMethod · 0.80

Tested by

no test coverage detected