openpyxl.descriptors.nested module

Generic serialisable classes

class openpyxl.descriptors.nested.EmptyTag(*args, **kw)[源代码]

基类:openpyxl.descriptors.nested.Nested, openpyxl.descriptors.base.Bool

Boolean if a tag exists or not.

from_tree(node)[源代码]
to_tree(tagname=None, value=None, namespace=None)[源代码]
class openpyxl.descriptors.nested.Nested(name=None, **kw)[源代码]

基类:openpyxl.descriptors.base.Descriptor

attribute = 'val'
from_tree(node)[源代码]
nested = True
to_tree(tagname=None, value=None, namespace=None)[源代码]
class openpyxl.descriptors.nested.NestedBool(*args, **kw)[源代码]

基类:openpyxl.descriptors.nested.NestedValue, openpyxl.descriptors.base.Bool

from_tree(node)[源代码]
class openpyxl.descriptors.nested.NestedFloat(*args, **kw)[源代码]

基类:openpyxl.descriptors.nested.NestedValue, openpyxl.descriptors.base.Float

class openpyxl.descriptors.nested.NestedInteger(*args, **kw)[源代码]

基类:openpyxl.descriptors.nested.NestedValue, openpyxl.descriptors.base.Integer

class openpyxl.descriptors.nested.NestedMinMax(**kw)[源代码]

基类:openpyxl.descriptors.nested.Nested, openpyxl.descriptors.base.MinMax

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

基类:openpyxl.descriptors.nested.Nested, openpyxl.descriptors.base.NoneSet

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

基类:openpyxl.descriptors.nested.Nested, openpyxl.descriptors.base.Set

class openpyxl.descriptors.nested.NestedString(*args, **kw)[源代码]

基类:openpyxl.descriptors.nested.NestedValue, openpyxl.descriptors.base.String

class openpyxl.descriptors.nested.NestedText(*args, **kw)[源代码]

基类:openpyxl.descriptors.nested.NestedValue

Represents any nested tag with the value as the contents of the tag

from_tree(node)[源代码]
to_tree(tagname=None, value=None, namespace=None)[源代码]
class openpyxl.descriptors.nested.NestedValue(*args, **kw)[源代码]

基类:openpyxl.descriptors.nested.Nested, openpyxl.descriptors.base.Convertible

Nested tag storing the value on the ‘val’ attribute