openpyxl.packaging.relationship module
- class openpyxl.packaging.relationship.Relationship(Id=None, Type=None, type=None, Target=None, TargetMode=None)[source]
Bases:
Serialisable
Represents 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
Values must be of type <class ‘str’>
- tagname = 'Relationship'
- target
Values must be of type <class ‘str’>
- class openpyxl.packaging.relationship.RelationshipList(iterable=(), /)[source]
Bases:
ElementList
- expected_type
alias of
Relationship
- 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'
- openpyxl.packaging.relationship.get_dependents(archive, filename)[source]
Normalise dependency file paths to absolute ones
Relative paths are relative to parent object