openpyxl.descriptors.sequence module
- class openpyxl.descriptors.sequence.MultiSequence(name=None, **kw)[source]
Bases:
Sequence
Sequences can contain objects with different tags
- class openpyxl.descriptors.sequence.MultiSequencePart(expected_type, store)[source]
Bases:
Alias
Allow a multisequence to be built up from parts
Excluded from the instance __elements__ or __attrs__ as is effectively an Alias
- class openpyxl.descriptors.sequence.NestedSequence(name=None, **kw)[source]
Bases:
Sequence
Wrap a sequence in an containing object
- count = False
- class openpyxl.descriptors.sequence.Sequence(name=None, **kw)[source]
Bases:
Descriptor
A sequence (list or tuple) that may only contain objects of the declared type
- container
alias of
list
- expected_type
alias of
None
- idx_base = 0
- seq_types = (<class 'list'>, <class 'tuple'>)
- to_tree(tagname, obj, namespace=None)[source]
Convert the sequence represented by the descriptor to an XML element
- unique = False
- class openpyxl.descriptors.sequence.UniqueSequence(name=None, **kw)[source]
Bases:
Sequence
Use a set to keep values unique
- container
alias of
set
- seq_types = (<class 'list'>, <class 'tuple'>, <class 'set'>)