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

Method append

src/docx/package.py:65–66  ·  view source on GitHub ↗
(self, item: ImagePart)

Source from the content-addressed store, hash-verified

63 return self._image_parts.__len__()
64
65 def append(self, item: ImagePart):
66 self._image_parts.append(item)
67
68 def get_or_add_image_part(self, image_descriptor: str | IO[bytes]) -> ImagePart:
69 """Return |ImagePart| object containing image identified by `image_descriptor`.

Callers 15

_add_image_partMethod · 0.95
pushMethod · 0.80
_cellsMethod · 0.80
_gather_image_partsMethod · 0.80
__str__Method · 0.80
from_streamMethod · 0.80
_walk_phys_partsMethod · 0.80
load_from_xmlMethod · 0.80
add_relMethod · 0.80
add_defaultMethod · 0.80

Calls

no outgoing calls

Tested by 3

pHYs_fixtureMethod · 0.64
sparts_Method · 0.64