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

Method open

src/pptx/opc/package.py:80–82  ·  view source on GitHub ↗

Return an |OpcPackage| instance loaded with the contents of `pkg_file`.

(cls, pkg_file: str | IO[bytes])

Source from the content-addressed store, hash-verified

78
79 @classmethod
80 def open(cls, pkg_file: str | IO[bytes]) -> Self:
81 """Return an |OpcPackage| instance loaded with the contents of `pkg_file`."""
82 return cls(pkg_file)._load()
83
84 def drop_rel(self, rId: str) -> None:
85 """Remove relationship identified by `rId`."""

Callers

nothing calls this directly

Calls 1

_loadMethod · 0.45

Tested by

no test coverage detected