from .kafka_p import * from settings import settings def output_factory(who): f = { 'kafka': ToKafka(settings.KAFKA_CONF) } return f.get(who)