spreadsheet_intelligence.parsers.theme package#
Subpackages#
Submodules#
spreadsheet_intelligence.parsers.theme.theme_xml_parser module#
- class spreadsheet_intelligence.parsers.theme.theme_xml_parser.ThemeXMLParser(theme_root: Element)[source]#
Bases:
BaseXMLParser
Parses XML theme elements into a Theme object.
- namespaces#
XML namespaces used in the theme.
- Type:
dict
- theme_el_root#
Root element of the theme XML.
- Type:
ET.Element
- namespaces: dict[str, str]#
- parse() Theme [source]#
Parses the theme XML and returns a Theme object.
- Returns:
The parsed theme object.
- Return type:
- _abc_impl = <_abc._abc_data object>#
Module contents#
- class spreadsheet_intelligence.parsers.theme.ThemeXMLParser(theme_root: Element)[source]#
Bases:
BaseXMLParser
Parses XML theme elements into a Theme object.
- namespaces#
XML namespaces used in the theme.
- Type:
dict
- theme_el_root#
Root element of the theme XML.
- Type:
ET.Element
- _abc_impl = <_abc._abc_data object>#
- parse() Theme [source]#
Parses the theme XML and returns a Theme object.
- Returns:
The parsed theme object.
- Return type:
- namespaces: dict[str, str]#
- class spreadsheet_intelligence.parsers.theme.ThemeParser(namespaces: dict[str, str])[source]#
Bases:
BaseParser
Parser for theme elements in a spreadsheet.
This class is responsible for parsing XML elements related to themes and converting them into Theme objects.
- namespaces#
A dictionary of XML namespaces.
- Type:
dict[str, str]
- _abc_impl = <_abc._abc_data object>#