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

Method _write

src/pptx/opc/serialized.py:81–86  ·  view source on GitHub ↗

Write physical package (.pptx file).

(self)

Source from the content-addressed store, hash-verified

79 cls(pkg_file, pkg_rels, parts)._write()
80
81 def _write(self) -> None:
82 """Write physical package (.pptx file)."""
83 with _PhysPkgWriter.factory(self._pkg_file) as phys_writer:
84 self._write_content_types_stream(phys_writer)
85 self._write_pkg_rels(phys_writer)
86 self._write_parts(phys_writer)
87
88 def _write_content_types_stream(self, phys_writer: _PhysPkgWriter) -> None:
89 """Write `[Content_Types].xml` part to the physical package.

Callers 2

writeMethod · 0.80

Calls 4

_write_pkg_relsMethod · 0.95
_write_partsMethod · 0.95
factoryMethod · 0.45

Tested by 1