Write a physical package (.pptx file) to `pkg_file`. The serialized package contains `pkg_rels` and `parts`, a content-types stream based on the content type of each part, and a .rels file for each part that has relationships.
(
cls, pkg_file: str | IO[bytes], pkg_rels: _Relationships, parts: Sequence[Part]
)
| 69 | |
| 70 | @classmethod |
| 71 | def write( |
| 72 | cls, pkg_file: str | IO[bytes], pkg_rels: _Relationships, parts: Sequence[Part] |
| 73 | ) -> None: |
| 74 | """Write a physical package (.pptx file) to `pkg_file`. |
| 75 | |
| 76 | The serialized package contains `pkg_rels` and `parts`, a content-types stream based on |
| 77 | the content type of each part, and a .rels file for each part that has relationships. |
| 78 | """ |
| 79 | cls(pkg_file, pkg_rels, parts)._write() |
| 80 | |
| 81 | def _write(self) -> None: |
| 82 | """Write physical package (.pptx file).""" |