openpyxl.packaging.relationship module¶
-
class
openpyxl.packaging.relationship.Relationship(Id=None, Type=None, type=None, Target=None, TargetMode=None)[source]¶ Bases:
openpyxl.descriptors.serialisable.SerialisableRepresents many kinds of relationships.
-
Id¶ Values must be of type <class ‘str’>
-
Target¶ Values must be of type <class ‘str’>
-
TargetMode¶ Values must be of type <class ‘str’>
-
Type¶ Values must be of type <class ‘str’>
-
id¶ Aliases can be used when either the desired attribute name is not allowed or confusing in Python (eg. “type”) or a more descriptve name is desired (eg. “underline” for “u”)
-
tagname= 'Relationship'¶
-
target¶ Aliases can be used when either the desired attribute name is not allowed or confusing in Python (eg. “type”) or a more descriptve name is desired (eg. “underline” for “u”)
-
-
class
openpyxl.packaging.relationship.RelationshipList(Relationship=())[source]¶ Bases:
openpyxl.descriptors.serialisable.Serialisable-
Relationship¶ A sequence (list or tuple) that may only contain objects of the declared type
-
find(content_type)[source]¶ Find relationships by content-type NB. these content-types namespaced objects and different to the MIME-types in the package manifest :-(
-
tagname= 'Relationships'¶
-