<gh_stars>0
from connectors.core.connector import Connector, get_logger, ConnectorError
from .operations import operations, _check_health

logger = get_logger('text_extractor')

class TextExtractor(Connector):
    """Main Class"""
    def execute(self, config, operation, params, **kwargs):
        params.update({"operation":operation}) 
        action = operations.get(operation)
        return action(config, params)

    def check_health(self, config):
        _check_health(config)

from connectors.core.connector import Connector, get_logger, ConnectorError
from .operations import operations, _check_health

logger = get_logger('text_extractor')

class TextExtractor(Connector):
    """Main Class"""
    def execute(self, config, operation, params, **kwargs):
        params.update({"operation":operation}) 
        action = operations.get(operation)
        return action(config, params)

    def check_health(self, config):
        _check_health(config)
Main Class