senzing-garage / stream-producer

Produce a stream from different input formats.
Apache License 2.0
2 stars 4 forks source link

Support Transforming data en-flight #7

Open docktermj opened 4 years ago

docktermj commented 4 years ago

Is your feature request related to a problem? Please describe. Support "transforming" in stream-producer.py This would make a true "ETL".

This would be similar to techniques used at:

Where "plugins" would be used to perform the Transforming. The plugin would receive a "record" as a python dictionary and return a list of 0 or more python dictionaries

class Transformer:

    def __init__(self, g2_engine=None, *args, **kwargs):
        self.g2_engine = g2_engine

    def transform(self, message=None, hint=None, *args, **kwargs):
        assert type(message) == dict
        messages = [dict1, dict2]        
        return messages
jbutcher21 commented 4 years ago

Sounds good. I'm ready to code these classes. I assume I will create ... DNBTransformer.py IJICTransformer.py DowJonesTransformer.py etc?

roncewind commented 3 years ago

Ref.: https://senzing.zendesk.com/hc/en-us/articles/360054097153-Advanced-mapping-concepts