spreadsheet_intelligence.parsers.common package#

Submodules#

spreadsheet_intelligence.parsers.common.common_parser module#

spreadsheet_intelligence.parsers.common.common_parser.get_scheme_clr(scheme_clr_el: Element, namespaces: Dict[str, str]) SchemeClr[source]#

Extracts SchemeClr from an XML element.

Parameters:
  • scheme_clr_el (ET.Element) – The XML element containing the scheme color.

  • namespaces (Dict[str, str]) – A dictionary of XML namespaces.

Returns:

The extracted scheme color object.

Return type:

SchemeClr

Raises:

ValueError – If the ‘val’ attribute is not found in the element.

spreadsheet_intelligence.parsers.common.common_parser.get_srgb_clr(srgb_clr_el: Element) SrgbClr[source]#

Extracts SrgbClr from an XML element.

Parameters:

srgb_clr_el (ET.Element) – The XML element containing the sRGB color.

Returns:

The extracted sRGB color object.

Return type:

SrgbClr

Raises:

ValueError – If the ‘val’ attribute is not found in the element.

Module contents#