openpyxl.descriptors.base module¶
Based on Python Cookbook 3rd Edition, 8.13 http://chimera.labs.oreilly.com/books/1230000000393/ch08.html#_discussiuncion_130
- class openpyxl.descriptors.base.Alias(alias)[源代码]¶
基类:
openpyxl.descriptors.base.Descriptor
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.descriptors.base.Convertible(*args, **kw)[源代码]¶
基类:
openpyxl.descriptors.base.Typed
Values must be convertible to a particular type
- class openpyxl.descriptors.base.Default(name=None, **kw)[源代码]¶
基类:
openpyxl.descriptors.base.Typed
When called returns an instance of the expected type. Additional default values can be passed in to the descriptor
- class openpyxl.descriptors.base.MatchPattern(name=None, **kw)[源代码]¶
基类:
openpyxl.descriptors.base.Descriptor
Values must match a regex pattern
- allow_none = False¶
- class openpyxl.descriptors.base.Max(**kw)[源代码]¶
基类:
openpyxl.descriptors.base.Convertible
Values must be less than a max value
- allow_none = False¶
- class openpyxl.descriptors.base.Min(**kw)[源代码]¶
基类:
openpyxl.descriptors.base.Convertible
Values must be greater than a min value
- allow_none = False¶
- class openpyxl.descriptors.base.MinMax(**kw)[源代码]¶
基类:
openpyxl.descriptors.base.Min
,openpyxl.descriptors.base.Max
Values must be greater than min value and less than a max one
- class openpyxl.descriptors.base.NoneSet(name=None, **kw)[源代码]¶
基类:
openpyxl.descriptors.base.Set
‘none’ will be treated as None
- class openpyxl.descriptors.base.Set(name=None, **kw)[源代码]¶
基类:
openpyxl.descriptors.base.Descriptor
Value can only be from a set of know values
- class openpyxl.descriptors.base.Text(*args, **kw)[源代码]¶
基类:
openpyxl.descriptors.base.String
,openpyxl.descriptors.base.Convertible