# An abstract class template for query handler factory return object # try a 'naive' implementation without using abc class QueryHandlerAbstract(): def __init__(self): if type(self) is QueryHandlerAbstract: raise Exception("QueryHandlerAbstract is an abstract class and can't be instantiated") def query(self, queryData, pandas=False, dbFile=None): raise Exception("Method not implemented") def textQuery(self, queryData): raise Exception("Method not implemented")