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.ASCII(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Typed

expected_type

:py:class:`bytes`的别名

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.Bool(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Convertible

expected_type

:py:class:`bool`的别名

class openpyxl.descriptors.base.Convertible(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Typed

Values must be convertible to a particular type

class openpyxl.descriptors.base.DateTime(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Typed

expected_type

:py:class:`datetime.datetime`的别名

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.Descriptor(name=None, **kw)[源代码]

基类:object

class openpyxl.descriptors.base.Float(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Convertible

expected_type

:py:class:`float`的别名

class openpyxl.descriptors.base.Integer(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Convertible

expected_type

:py:class:`int`的别名

class openpyxl.descriptors.base.Length(name=None, **kw)[源代码]

基类:openpyxl.descriptors.base.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
expected_type

:py:class:`float`的别名

class openpyxl.descriptors.base.Min(**kw)[源代码]

基类:openpyxl.descriptors.base.Convertible

Values must be greater than a min value

allow_none = False
expected_type

:py:class:`float`的别名

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.String(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Typed

expected_type

:py:class:`str`的别名

class openpyxl.descriptors.base.Text(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.String, openpyxl.descriptors.base.Convertible

class openpyxl.descriptors.base.Tuple(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Typed

expected_type

:py:class:`tuple`的别名

class openpyxl.descriptors.base.Typed(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Descriptor

Values must of a particular type

allow_none = False
expected_type

:py:obj:`None`的别名

nested = False