Source code for spreadsheet_intelligence.parsers.abstract
from abc import ABC, abstractmethod
from typing import Dict
import xml.etree.ElementTree as ET
[docs]
class BaseParser(ABC):
def __init__(self, namespaces: Dict[str, str]):
self.namespaces = namespaces
[docs]
@abstractmethod
def parse(self, element: ET.Element):
pass