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

Method rels

src/docx/opc/package.py:154–157  ·  view source on GitHub ↗

Return a reference to the |Relationships| instance holding the collection of relationships for this package.

(self)

Source from the content-addressed store, hash-verified

152
153 @lazyproperty
154 def rels(self):
155 """Return a reference to the |Relationships| instance holding the collection of
156 relationships for this package."""
157 return Relationships(PACKAGE_URI.baseURI)
158
159 def save(self, pkg_file: str | IO[bytes]):
160 """Save this package to `pkg_file`.

Callers

nothing calls this directly

Calls 1

RelationshipsClass · 0.90

Tested by

no test coverage detected