MCPcopy Index your code
hub / github.com/python-openxml/python-docx / after_unmarshal

Method after_unmarshal

src/docx/package.py:18–23  ·  view source on GitHub ↗

Called by loading code after all parts and relationships have been loaded. This method affords the opportunity for any required post-processing.

(self)

Source from the content-addressed store, hash-verified

16 """Customizations specific to a WordprocessingML package."""
17
18 def after_unmarshal(self):
19 """Called by loading code after all parts and relationships have been loaded.
20
21 This method affords the opportunity for any required post-processing.
22 """
23 self._gather_image_parts()
24
25 def get_or_add_image_part(self, image_descriptor: str | IO[bytes]) -> ImagePart:
26 """Return |ImagePart| containing image specified by `image_descriptor`.

Callers

nothing calls this directly

Calls 1

_gather_image_partsMethod · 0.95

Tested by

no test coverage detected