def pipe_1166de33b0ea6936d96808717355beaa(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [u'pipeitembuilder', u'pipeloop', u'pipeoutput', u'piperssitembuilder', u'pipeunion']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_710(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_itembuilder(
            context, _INPUT, conf={'attrs': [{'value': {'type': 'text', 'subkey': 'newtitle'}, 'key': {'type': 'text', 'value': 'title'}}, {'value': {'type': 'text', 'value': 'DESCRIPTION'}, 'key': {'type': 'text', 'value': 'description.content'}}]})
    
    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_696(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_itembuilder(
            context, _INPUT, conf={'attrs': [{'value': {'type': 'text', 'value': 'NEWTITLE'}, 'key': {'type': 'text', 'value': 'newtitle'}}, {'value': {'type': 'text', 'subkey': 'title'}, 'key': {'type': 'text', 'value': 'title'}}]})
    
    sw_674 = pipe_rssitembuilder(
        context, forever, conf={'mediaContentHeight': {'type': 'text', 'value': ''}, 'mediaThumbURL': {'type': 'text', 'value': 'http://example.com/a.jpg'}, 'mediaContentType': {'type': 'text', 'value': ''}, 'description': {'type': 'text', 'value': 'b'}, 'pubdate': {'type': 'text', 'value': ''}, 'author': {'type': 'text', 'value': ''}, 'title': {'type': 'text', 'value': 'a'}, 'mediaThumbHeight': {'type': 'text', 'value': ''}, 'link': {'type': 'text', 'value': 'http://example.com/test.php?this=that'}, 'mediaContentWidth': {'type': 'text', 'value': ''}, 'mediaContentURL': {'type': 'text', 'value': ''}, 'guid': {'type': 'text', 'value': ''}, 'mediaThumbWidth': {'type': 'text', 'value': ''}})
    
    sw_554 = pipe_itembuilder(
        context, forever, conf={'attrs': [{'value': {'type': 'text', 'value': 'TITLE1'}, 'key': {'type': 'text', 'value': 'title'}}]})
    
    sw_569 = pipe_itembuilder(
        context, forever, conf={'attrs': [{'value': {'type': 'text', 'value': 'TITLE2'}, 'key': {'type': 'text', 'value': 'title'}}, {'value': {'type': 'text', 'value': 'DESC'}, 'key': {'type': 'text', 'value': 'description'}}, {'value': {'type': 'text', 'value': 'GONE'}, 'key': {'type': 'text', 'value': 'lostattribute'}}]})
    
    sw_637 = pipe_union(
        context, sw_554, _OTHER2=sw_569, conf={})
    
    sw_656 = pipe_loop(
        context, sw_637, embed=pipe_sw_696, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'loop:itembuilder'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'EMIT'}, 'embed': {'type': 'module', 'value': {'type': 'itembuilder', 'id': 'sw-696', 'conf': {'attrs': [{'value': {'type': 'text', 'value': 'NEWTITLE'}, 'key': {'type': 'text', 'value': 'newtitle'}}, {'value': {'type': 'text', 'subkey': 'title'}, 'key': {'type': 'text', 'value': 'title'}}]}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_688 = pipe_loop(
        context, sw_656, embed=pipe_sw_710, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'loop:itembuilder'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'assign'}, 'embed': {'type': 'module', 'value': {'type': 'itembuilder', 'id': 'sw-710', 'conf': {'attrs': [{'value': {'type': 'text', 'subkey': 'newtitle'}, 'key': {'type': 'text', 'value': 'title'}}, {'value': {'type': 'text', 'value': 'DESCRIPTION'}, 'key': {'type': 'text', 'value': 'description.content'}}]}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_730 = pipe_union(
        context, sw_674, _OTHER2=sw_688, conf={})
    
    _OUTPUT = pipe_output(
        context, sw_730, conf={})
    
    return _OUTPUT
def pipe_UuvYtuMe3hGDsmRgPm7D0g(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return [(u'', u'name', u'Name', u'text', u'Lancaster')]

    if context and context.describe_dependencies:
        return [u'pipecsv', u'pipefilter', u'pipeloop', u'pipeoutput', u'piperename', u'pipestrconcat', u'pipetextinput']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_581(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_strconcat(
            context, _INPUT, conf={'part': [{'type': 'text', 'subkey': 'firstName'}, {'type': 'text', 'value': ' '}, {'type': 'text', 'subkey': 'Member'}]})
    
    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_408(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_strconcat(
            context, _INPUT, conf={'part': [{'type': 'text', 'value': 'Total allowances claimed, inc travel: '}, {'type': 'text', 'subkey': 'TotalAllowancesClaimedIncTravel'}, {'type': 'text', 'value': '<br>Total basic allowances claimed, ex travel: '}, {'type': 'text', 'subkey': 'TotalBasicAllowancesExcTravel'}, {'type': 'text', 'value': '<br>Total Travel claimed: '}, {'type': 'text', 'subkey': 'TotalTravelClaimed'}, {'type': 'text', 'value': '<br>MP Mileage: '}, {'type': 'text', 'subkey': 'Mileage'}, {'type': 'text', 'value': '<br>MP Rail Travel: '}, {'type': 'text', 'subkey': 'MPRail'}, {'type': 'text', 'value': '<br>MP Air Travel: '}, {'type': 'text', 'subkey': 'MPAir'}, {'type': 'text', 'value': '<br>Cost of staying away from main home: '}, {'type': 'text', 'subkey': 'CostofStayingAwayFromMainHome'}, {'type': 'text', 'value': '<br>London Supplement: '}, {'type': 'text', 'subkey': 'LondonSupplement'}, {'type': 'text', 'value': '<br>Office Running Costs: '}, {'type': 'text', 'subkey': 'OfficeRunningCosts'}, {'type': 'text', 'value': '<br>Staffing Costs: '}, {'type': 'text', 'subkey': 'StaffingCosts'}]})
    
    sw_371 = pipe_textinput(
        context, forever, conf={'debug': {'type': 'text', 'value': ''}, 'default': {'type': 'text', 'value': 'Lancaster'}, 'prompt': {'type': 'text', 'value': 'Name'}, 'name': {'type': 'text', 'value': 'name'}, 'position': {'type': 'number', 'value': ''}})
    
    sw_340 = pipe_csv(
        context, forever, conf={'other_sep': {'type': 'text', 'value': ''}, 'URL': {'type': 'url', 'value': 'file://data/spreadsheets.google.com_pub?key=p1rHUqg4g420UMaN1sPvaRg&output=csv&range=a1_AB646.csv'}, 'skip': {'type': 'number', 'value': '0'}, 'col_name': [{'type': 'text', 'value': 'Member'}, {'type': 'text', 'value': 'firstName'}, {'type': 'text', 'value': 'TotalAllowancesClaimedIncTravel'}, {'type': 'text', 'value': 'TotalBasicAllowancesExcTravel'}, {'type': 'text', 'value': 'TotalTravelClaimed'}, {'type': 'text', 'value': 'CostofStayingAwayFromMainHome'}, {'type': 'text', 'value': 'LondonSupplement'}, {'type': 'text', 'value': 'OfficeRunningCosts'}, {'type': 'text', 'value': 'StaffingCosts'}, {'type': 'text', 'value': 'CentrallyPurchasedStationery'}, {'type': 'text', 'value': 'StationeryAssocdPostageCosts'}, {'type': 'text', 'value': 'CentralITProvision'}, {'type': 'text', 'value': 'StaffCoverAndOtherCosts'}, {'type': 'text', 'value': 'CommsAllowance'}, {'type': 'text', 'value': 'Mileage'}, {'type': 'text', 'value': 'MPRail'}, {'type': 'text', 'value': 'MPAir'}, {'type': 'text', 'value': 'MPMisc'}, {'type': 'text', 'value': 'MPOtherMileage'}, {'type': 'text', 'value': 'MPOtherRail'}, {'type': 'text', 'value': 'MPOtherAir'}, {'type': 'text', 'value': 'MPOtherEuropean'}, {'type': 'text', 'value': 'SpouseTotal'}, {'type': 'text', 'value': 'SpouseNumOfJourneys'}, {'type': 'text', 'value': 'FamilyTotal'}, {'type': 'text', 'value': 'FamilyNumOfJourneys'}, {'type': 'text', 'value': 'EmployeeTotal'}, {'type': 'text', 'value': 'EmployeeNumOfJourneys'}], 'col_row_start': {'type': 'number', 'value': '1'}, 'col_mode': {'type': 'text', 'value': 'custom'}, 'separator': {'type': 'text', 'value': ','}, 'col_row_end': {'type': 'number', 'value': '1'}})
    
    sw_375 = pipe_filter(
        context, sw_340, RULE_1_value=sw_371, conf={'COMBINE': {'type': 'text', 'value': 'and'}, 'MODE': {'type': 'text', 'value': 'permit'}, 'RULE': [{'field': {'type': 'text', 'value': 'Member'}, 'value': {'terminal': 'RULE_1_value', 'type': 'text'}, 'op': {'type': 'text', 'value': 'contains'}}]})
    
    sw_385 = pipe_rename(
        context, sw_375, conf={'RULE': [{'field': {'type': 'text', 'value': 'Member'}, 'op': {'type': 'text', 'value': 'copy'}, 'newval': {'type': 'text', 'value': 'title'}}]})
    
    sw_400 = pipe_loop(
        context, sw_385, embed=pipe_sw_408, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'description'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'assign'}, 'embed': {'type': 'module', 'value': {'type': 'strconcat', 'id': 'sw-408', 'conf': {'part': [{'type': 'text', 'value': 'Total allowances claimed, inc travel: '}, {'type': 'text', 'subkey': 'TotalAllowancesClaimedIncTravel'}, {'type': 'text', 'value': '<br>Total basic allowances claimed, ex travel: '}, {'type': 'text', 'subkey': 'TotalBasicAllowancesExcTravel'}, {'type': 'text', 'value': '<br>Total Travel claimed: '}, {'type': 'text', 'subkey': 'TotalTravelClaimed'}, {'type': 'text', 'value': '<br>MP Mileage: '}, {'type': 'text', 'subkey': 'Mileage'}, {'type': 'text', 'value': '<br>MP Rail Travel: '}, {'type': 'text', 'subkey': 'MPRail'}, {'type': 'text', 'value': '<br>MP Air Travel: '}, {'type': 'text', 'subkey': 'MPAir'}, {'type': 'text', 'value': '<br>Cost of staying away from main home: '}, {'type': 'text', 'subkey': 'CostofStayingAwayFromMainHome'}, {'type': 'text', 'value': '<br>London Supplement: '}, {'type': 'text', 'subkey': 'LondonSupplement'}, {'type': 'text', 'value': '<br>Office Running Costs: '}, {'type': 'text', 'subkey': 'OfficeRunningCosts'}, {'type': 'text', 'value': '<br>Staffing Costs: '}, {'type': 'text', 'subkey': 'StaffingCosts'}]}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_573 = pipe_loop(
        context, sw_400, embed=pipe_sw_581, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'title'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'assign'}, 'embed': {'type': 'module', 'value': {'type': 'strconcat', 'id': 'sw-581', 'conf': {'part': [{'type': 'text', 'subkey': 'firstName'}, {'type': 'text', 'value': ' '}, {'type': 'text', 'subkey': 'Member'}]}}}, 'with': {'type': 'text', 'value': ''}})
    
    _OUTPUT = pipe_output(
        context, sw_573, conf={})
    
    return _OUTPUT
def pipe_188eca77fd28c96c559f71f5729d91ec(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [u'pipefetchpage', u'pipeitembuilder', u'pipeloop', u'pipeoutput', u'pipetruncate']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_119(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_fetchpage(
            context, _INPUT, conf={'URL': {'type': 'url', 'subkey': 'url'}, 'to': {'type': 'text', 'value': '</tr>'}, 'token': {'type': 'text', 'value': '<td style="TEXT-ALIGN: center">'}, 'from': {'type': 'text', 'value': 'One Way</span>'}})
    
    sw_163 = pipe_itembuilder(
        context, forever, conf={'attrs': {'value': {'type': 'text', 'value': 'file://data/www.caltrain.com_Fares_farechart.html'}, 'key': {'type': 'text', 'value': 'url'}}})
    
    sw_111 = pipe_loop(
        context, sw_163, embed=pipe_sw_119, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'loop:fetchpage'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'EMIT'}, 'embed': {'type': 'module', 'value': {'type': 'fetchpage', 'id': 'sw-119', 'conf': {'URL': {'type': 'url', 'subkey': 'url'}, 'to': {'type': 'text', 'value': '</tr>'}, 'token': {'type': 'text', 'value': '<td style="TEXT-ALIGN: center">'}, 'from': {'type': 'text', 'value': 'One Way</span>'}}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_287 = pipe_truncate(
        context, sw_111, conf={'count': {'type': 'number', 'value': '100'}})
    
    _OUTPUT = pipe_output(
        context, sw_287, conf=None)
    
    return _OUTPUT
def pipe_HrX5bjkv3BGEp9eSy6ky6g(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [u'pipefeedautodiscovery', u'pipefetch', u'pipeloop', u'pipeoutput', u'pipesort', u'pipetruncate']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_165(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_fetch(
            context, _INPUT, conf={'URL': {'type': 'url', 'subkey': 'link'}})
    
    sw_149 = pipe_feedautodiscovery(
        context, forever, conf={'URL': {'type': 'url', 'value': 'file://data/edition.cnn.html'}})
    
    sw_157 = pipe_loop(
        context, sw_149, embed=pipe_sw_165, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'loop:fetch'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'EMIT'}, 'embed': {'type': 'module', 'value': {'type': 'fetch', 'id': 'sw-165', 'conf': {'URL': {'type': 'url', 'subkey': 'link'}}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_174 = pipe_sort(
        context, sw_157, conf={'KEY': [{'field': {'type': 'text', 'value': 'pubDate'}, 'dir': {'type': 'text', 'value': 'ASC'}}]})
    
    sw_191 = pipe_truncate(
        context, sw_174, conf={'count': {'type': 'number', 'value': '25'}})
    
    _OUTPUT = pipe_output(
        context, sw_191, conf={})
    
    return _OUTPUT
def pipe_e65397e116d7754da0dd23425f1f0af1(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [u'pipefetch', u'pipeloop', u'pipeoutput', u'piperegex', u'piperename', u'pipeurlbuilder']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_634(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_urlbuilder(
            context, forever, conf={'PATH': {'type': 'text', 'value': ''}, 'BASE': {'type': 'text', 'value': ''}, 'PARAM': [{'value': {'type': 'text', 'value': 'qr'}, 'key': {'type': 'text', 'value': 'cht'}}, {'value': {'type': 'text', 'value': '200x200'}, 'key': {'type': 'text', 'value': 'chs'}}, {'value': {'type': 'text', 'subkey': 'link'}, 'key': {'type': 'text', 'value': 'chl'}}]})
    
    sw_565 = pipe_fetch(
        context, forever, conf={'URL': {'type': 'url', 'value': ''}})
    
    sw_626 = pipe_loop(
        context, sw_565, embed=pipe_sw_634, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'media:content.url'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'assign'}, 'embed': {'type': 'module', 'value': {'type': 'urlbuilder', 'id': 'sw-634', 'conf': {'PATH': {'type': 'text', 'value': ''}, 'BASE': {'type': 'text', 'value': ''}, 'PARAM': [{'value': {'type': 'text', 'value': 'qr'}, 'key': {'type': 'text', 'value': 'cht'}}, {'value': {'type': 'text', 'value': '200x200'}, 'key': {'type': 'text', 'value': 'chs'}}, {'value': {'type': 'text', 'subkey': 'link'}, 'key': {'type': 'text', 'value': 'chl'}}]}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_592 = pipe_rename(
        context, sw_626, conf={'RULE': [{'field': {'type': 'text', 'value': 'media:content.url'}, 'op': {'type': 'text', 'value': 'copy'}, 'newval': {'type': 'text', 'value': 'description'}}]})
    
    sw_636 = pipe_regex(
        context, sw_592, conf={'RULE': [{'field': {'type': 'text', 'value': 'description'}, 'match': {'type': 'text', 'value': '(.*)'}, 'replace': {'type': 'text', 'value': '<img src="$1" alt="QRcode" /><br/>${title}'}}]})
    
    _OUTPUT = pipe_output(
        context, sw_636, conf={})
    
    return _OUTPUT
Example #6
0
def pipe_a08134746e30a6dd3a7cb3c0cf098692(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [u'pipecreaterss', u'pipeloop', u'pipeoutput', u'piperename', u'pipestrconcat', u'pipexpathfetchpage']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_515(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_strconcat(
            context, forever, conf={'part': [{'type': 'text', 'value': '<img src="'}, {'type': 'text', 'subkey': 'img.src'}, {'type': 'text', 'value': '">'}]})
    
    sw_327 = pipe_xpathfetchpage(
        context, forever, conf={'URL': {'type': 'url', 'value': 'http://pinterest.com/popular/'}, 'xpath': {'type': 'text', 'value': "//a[@class='PinImage ImgLink']"}})
    
    sw_507 = pipe_loop(
        context, sw_327, embed=pipe_sw_515, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'description'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'assign'}, 'embed': {'type': 'module', 'value': {'type': 'strconcat', 'id': 'sw-515', 'conf': {'part': [{'type': 'text', 'value': '<img src="'}, {'type': 'text', 'subkey': 'img.src'}, {'type': 'text', 'value': '">'}]}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_303 = pipe_rename(
        context, sw_507, conf={'RULE': {'field': {'type': 'text', 'value': 'href'}, 'op': {'type': 'text', 'value': 'rename'}, 'newval': {'type': 'text', 'value': 'link'}}})
    
    sw_443 = pipe_createrss(
        context, sw_303, conf={'mediaContentHeight': {'type': 'text', 'value': ''}, 'mediaThumbURL': {'type': 'text', 'value': ''}, 'mediaContentType': {'type': 'text', 'value': ''}, 'description': {'type': 'text', 'value': ''}, 'pubdate': {'type': 'text', 'value': ''}, 'author': {'type': 'text', 'value': ''}, 'title': {'type': 'text', 'value': 'img.alt'}, 'mediaThumbHeight': {'type': 'text', 'value': ''}, 'link': {'type': 'text', 'value': ''}, 'mediaContentWidth': {'type': 'text', 'value': ''}, 'mediaContentURL': {'type': 'text', 'value': 'img.src'}, 'guid': {'type': 'text', 'value': ''}, 'mediaThumbWidth': {'type': 'text', 'value': ''}})
    
    sw_261 = pipe_output(
        context, sw_443, conf=None)
    
    return sw_261
def pipe_dAI_R_FS3BG6fTKsAsqenA(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [u'pipefetchdata', u'pipeloop', u'pipeoutput', u'piperename', u'pipestrconcat']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_298(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_strconcat(
            context, _INPUT, conf={'part': [{'type': 'text', 'subkey': 'headline'}, {'type': 'text', 'value': ' ('}, {'type': 'text', 'subkey': 'severity'}, {'type': 'text', 'value': ')'}]})
    
    sw_286 = pipe_fetchdata(
        context, forever, conf={'URL': {'type': 'url', 'value': 'file://data/capnorth.oes.ca.gov_89509.xml'}, 'path': {'type': 'text', 'value': 'info'}})
    
    sw_138 = pipe_loop(
        context, sw_286, embed=pipe_sw_298, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'title'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'assign'}, 'embed': {'type': 'module', 'value': {'type': 'strconcat', 'id': 'sw-298', 'conf': {'part': [{'type': 'text', 'subkey': 'headline'}, {'type': 'text', 'value': ' ('}, {'type': 'text', 'subkey': 'severity'}, {'type': 'text', 'value': ')'}]}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_180 = pipe_rename(
        context, sw_138, conf={'RULE': [{'field': {'type': 'text', 'value': 'expires'}, 'op': {'type': 'text', 'value': 'rename'}, 'newval': {'type': 'text', 'value': 'pubDate'}}]})
    
    _OUTPUT = pipe_output(
        context, sw_180, conf={})
    
    return _OUTPUT
def pipe_125e9fe8bb5f84526d21bebfec3ad116(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return [(u'', u'textinput1', u'Enter Text', u'text', u'Guten Tag')]

    if context and context.describe_dependencies:
        return [u'pipefetchdata', u'pipeitembuilder', u'pipeloop', u'pipeoutput', u'piperename', u'pipetextinput', u'pipeurlbuilder']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_72(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_urlbuilder(
            context, _INPUT, conf={'BASE': {'type': 'text', 'value': 'http://ajax.googleapis.com/ajax/services/language/detect'}, 'PARAM': [{'value': {'type': 'text', 'subkey': 'title'}, 'key': {'type': 'text', 'value': 'q'}}, {'value': {'type': 'text', 'value': '1.0'}, 'key': {'type': 'text', 'value': 'v'}}]})
    
    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_150(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_fetchdata(
            context, _INPUT, conf={'URL': {'type': 'url', 'subkey': 'language-url'}, 'path': {'type': 'text', 'value': 'responseData.language'}})
    
    sw_479 = pipe_textinput(
        context, forever, conf={'debug': {'type': 'text', 'value': ''}, 'default': {'type': 'text', 'value': 'Guten Tag'}, 'prompt': {'type': 'text', 'value': 'Enter Text'}, 'name': {'type': 'text', 'value': 'textinput1'}, 'position': {'type': 'number', 'value': ''}})
    
    sw_467 = pipe_itembuilder(
        context, forever, conf={'attrs': [{'value': {'terminal': 'attrs_1_value', 'type': 'text'}, 'key': {'type': 'text', 'value': 'title'}}]}, attrs_1_value=sw_479)
    
    sw_61 = pipe_loop(
        context, sw_467, embed=pipe_sw_72, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'language-url'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'assign'}, 'embed': {'type': 'module', 'value': {'type': 'urlbuilder', 'id': 'sw-72', 'conf': {'BASE': {'type': 'text', 'value': 'http://ajax.googleapis.com/ajax/services/language/detect'}, 'PARAM': [{'value': {'type': 'text', 'subkey': 'title'}, 'key': {'type': 'text', 'value': 'q'}}, {'value': {'type': 'text', 'value': '1.0'}, 'key': {'type': 'text', 'value': 'v'}}]}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_142 = pipe_loop(
        context, sw_61, embed=pipe_sw_150, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'language'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'assign'}, 'embed': {'type': 'module', 'value': {'type': 'fetchdata', 'id': 'sw-150', 'conf': {'URL': {'type': 'url', 'subkey': 'language-url'}, 'path': {'type': 'text', 'value': 'responseData.language'}}}}, 'with': {'type': 'text', 'value': ''}})
    
    sw_351 = pipe_rename(
        context, sw_142, conf={'RULE': [{'field': {'type': 'text', 'value': 'language.0.content'}, 'op': {'type': 'text', 'value': 'copy'}, 'newval': {'type': 'text', 'value': 'description'}}]})
    
    _OUTPUT = pipe_output(
        context, sw_351, conf={})
    
    return _OUTPUT
Example #9
0
def pipe_975789b47f17690a21e89b10a702bcbd(context=None, _INPUT=None, conf=None, **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return [(u'', u'q', u'Status update', u'text', u"Here's #: some #hashtags to play #with")]

    if context and context.describe_dependencies:
        return [u'pipefilter', u'pipeitembuilder', u'pipeloop', u'pipeoutput', u'piperegex', u'piperename', u'pipestringtokenizer', u'pipetextinput']

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_478(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_stringtokenizer(
            context, _INPUT, conf={'to-str': {'type': 'text', 'value': ' '}})
    
    sw_417 = pipe_textinput(
        context, forever, conf={'debug': {'type': 'text', 'value': ''}, 'default': {'type': 'text', 'value': "Here's #: some #hashtags to play #with"}, 'prompt': {'type': 'text', 'value': 'Status update'}, 'name': {'type': 'text', 'value': 'q'}, 'position': {'type': 'number', 'value': ''}})
    
    sw_424 = pipe_itembuilder(
        context, forever, conf={'attrs': [{'value': {'terminal': 'attrs_1_value', 'type': 'text'}, 'key': {'type': 'text', 'value': 'title'}}]}, attrs_1_value=sw_417)
    
    sw_436 = pipe_filter(
        context, sw_424, conf={'COMBINE': {'type': 'text', 'value': 'and'}, 'MODE': {'type': 'text', 'value': 'permit'}, 'RULE': [{'field': {'type': 'text', 'value': 'title'}, 'value': {'type': 'text', 'value': '#'}, 'op': {'type': 'text', 'value': 'contains'}}]})
    
    sw_447 = pipe_regex(
        context, sw_436, conf={'RULE': [{'field': {'type': 'text', 'value': 'title'}, 'globalmatch': {'type': 'text', 'value': '1'}, 'match': {'type': 'text', 'value': ' [^#]*'}, 'replace': {'type': 'text', 'value': ' '}}, {'field': {'type': 'text', 'value': 'title'}, 'match': {'type': 'text', 'value': '^[^#]*'}, 'replace': {'type': 'text', 'value': ''}}]})
    
    sw_470 = pipe_loop(
        context, sw_447, embed=pipe_sw_478, conf={'assign_part': {'type': 'text', 'value': 'all'}, 'assign_to': {'type': 'text', 'value': 'loop:stringtokenizer'}, 'emit_part': {'type': 'text', 'value': 'all'}, 'mode': {'type': 'text', 'value': 'EMIT'}, 'embed': {'type': 'module', 'value': {'type': 'stringtokenizer', 'id': 'sw-478', 'conf': {'to-str': {'type': 'text', 'value': ' '}}}}, 'with': {'type': 'text', 'value': 'title'}})
    
    sw_490 = pipe_filter(
        context, sw_470, conf={'COMBINE': {'type': 'text', 'value': 'and'}, 'MODE': {'type': 'text', 'value': 'permit'}, 'RULE': [{'field': {'type': 'text', 'value': 'content'}, 'value': {'type': 'text', 'value': '#[\\w]'}, 'op': {'type': 'text', 'value': 'matches'}}]})
    
    sw_501 = pipe_rename(
        context, sw_490, conf={'RULE': [{'field': {'type': 'text', 'value': 'content'}, 'op': {'type': 'text', 'value': 'rename'}, 'newval': {'type': 'text', 'value': 'title'}}]})
    
    _OUTPUT = pipe_output(
        context, sw_501, conf={})
    
    return _OUTPUT
Example #10
0
def pipe_1166de33b0ea6936d96808717355beaa(context=None,
                                          _INPUT=None,
                                          conf=None,
                                          **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [
            u'pipeitembuilder', u'pipeloop', u'pipeoutput',
            u'piperssitembuilder', u'pipeunion'
        ]

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_710(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_itembuilder(context,
                                _INPUT,
                                conf={
                                    'attrs': [{
                                        'value': {
                                            'type': 'text',
                                            'subkey': 'newtitle'
                                        },
                                        'key': {
                                            'type': 'text',
                                            'value': 'title'
                                        }
                                    }, {
                                        'value': {
                                            'type': 'text',
                                            'value': 'DESCRIPTION'
                                        },
                                        'key': {
                                            'type': 'text',
                                            'value': 'description.content'
                                        }
                                    }]
                                })

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_696(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_itembuilder(context,
                                _INPUT,
                                conf={
                                    'attrs': [{
                                        'value': {
                                            'type': 'text',
                                            'value': 'NEWTITLE'
                                        },
                                        'key': {
                                            'type': 'text',
                                            'value': 'newtitle'
                                        }
                                    }, {
                                        'value': {
                                            'type': 'text',
                                            'subkey': 'title'
                                        },
                                        'key': {
                                            'type': 'text',
                                            'value': 'title'
                                        }
                                    }]
                                })

    sw_674 = pipe_rssitembuilder(
        context,
        forever,
        conf={
            'mediaContentHeight': {
                'type': 'text',
                'value': ''
            },
            'mediaThumbURL': {
                'type': 'text',
                'value': 'http://example.com/a.jpg'
            },
            'mediaContentType': {
                'type': 'text',
                'value': ''
            },
            'description': {
                'type': 'text',
                'value': 'b'
            },
            'pubdate': {
                'type': 'text',
                'value': ''
            },
            'author': {
                'type': 'text',
                'value': ''
            },
            'title': {
                'type': 'text',
                'value': 'a'
            },
            'mediaThumbHeight': {
                'type': 'text',
                'value': ''
            },
            'link': {
                'type': 'text',
                'value': 'http://example.com/test.php?this=that'
            },
            'mediaContentWidth': {
                'type': 'text',
                'value': ''
            },
            'mediaContentURL': {
                'type': 'text',
                'value': ''
            },
            'guid': {
                'type': 'text',
                'value': ''
            },
            'mediaThumbWidth': {
                'type': 'text',
                'value': ''
            }
        })

    sw_554 = pipe_itembuilder(context,
                              forever,
                              conf={
                                  'attrs': [{
                                      'value': {
                                          'type': 'text',
                                          'value': 'TITLE1'
                                      },
                                      'key': {
                                          'type': 'text',
                                          'value': 'title'
                                      }
                                  }]
                              })

    sw_569 = pipe_itembuilder(context,
                              forever,
                              conf={
                                  'attrs': [{
                                      'value': {
                                          'type': 'text',
                                          'value': 'TITLE2'
                                      },
                                      'key': {
                                          'type': 'text',
                                          'value': 'title'
                                      }
                                  }, {
                                      'value': {
                                          'type': 'text',
                                          'value': 'DESC'
                                      },
                                      'key': {
                                          'type': 'text',
                                          'value': 'description'
                                      }
                                  }, {
                                      'value': {
                                          'type': 'text',
                                          'value': 'GONE'
                                      },
                                      'key': {
                                          'type': 'text',
                                          'value': 'lostattribute'
                                      }
                                  }]
                              })

    sw_637 = pipe_union(context, sw_554, _OTHER2=sw_569, conf={})

    sw_656 = pipe_loop(context,
                       sw_637,
                       embed=pipe_sw_696,
                       conf={
                           'assign_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'assign_to': {
                               'type': 'text',
                               'value': 'loop:itembuilder'
                           },
                           'emit_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'mode': {
                               'type': 'text',
                               'value': 'EMIT'
                           },
                           'embed': {
                               'type': 'module',
                               'value': {
                                   'type': 'itembuilder',
                                   'id': 'sw-696',
                                   'conf': {
                                       'attrs': [{
                                           'value': {
                                               'type': 'text',
                                               'value': 'NEWTITLE'
                                           },
                                           'key': {
                                               'type': 'text',
                                               'value': 'newtitle'
                                           }
                                       }, {
                                           'value': {
                                               'type': 'text',
                                               'subkey': 'title'
                                           },
                                           'key': {
                                               'type': 'text',
                                               'value': 'title'
                                           }
                                       }]
                                   }
                               }
                           },
                           'with': {
                               'type': 'text',
                               'value': ''
                           }
                       })

    sw_688 = pipe_loop(context,
                       sw_656,
                       embed=pipe_sw_710,
                       conf={
                           'assign_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'assign_to': {
                               'type': 'text',
                               'value': 'loop:itembuilder'
                           },
                           'emit_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'mode': {
                               'type': 'text',
                               'value': 'assign'
                           },
                           'embed': {
                               'type': 'module',
                               'value': {
                                   'type': 'itembuilder',
                                   'id': 'sw-710',
                                   'conf': {
                                       'attrs': [{
                                           'value': {
                                               'type': 'text',
                                               'subkey': 'newtitle'
                                           },
                                           'key': {
                                               'type': 'text',
                                               'value': 'title'
                                           }
                                       }, {
                                           'value': {
                                               'type': 'text',
                                               'value': 'DESCRIPTION'
                                           },
                                           'key': {
                                               'type': 'text',
                                               'value': 'description.content'
                                           }
                                       }]
                                   }
                               }
                           },
                           'with': {
                               'type': 'text',
                               'value': ''
                           }
                       })

    sw_730 = pipe_union(context, sw_674, _OTHER2=sw_688, conf={})

    _OUTPUT = pipe_output(context, sw_730, conf={})

    return _OUTPUT
Example #11
0
def pipe_UuvYtuMe3hGDsmRgPm7D0g(context=None,
                                _INPUT=None,
                                conf=None,
                                **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return [(u'', u'name', u'Name', u'text', u'Lancaster')]

    if context and context.describe_dependencies:
        return [
            u'pipecsv', u'pipefilter', u'pipeloop', u'pipeoutput',
            u'piperename', u'pipestrconcat', u'pipetextinput'
        ]

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_581(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_strconcat(context,
                              _INPUT,
                              conf={
                                  'part': [{
                                      'type': 'text',
                                      'subkey': 'firstName'
                                  }, {
                                      'type': 'text',
                                      'value': ' '
                                  }, {
                                      'type': 'text',
                                      'subkey': 'Member'
                                  }]
                              })

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_408(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_strconcat(
            context,
            _INPUT,
            conf={
                'part': [{
                    'type': 'text',
                    'value': 'Total allowances claimed, inc travel: '
                }, {
                    'type': 'text',
                    'subkey': 'TotalAllowancesClaimedIncTravel'
                }, {
                    'type':
                    'text',
                    'value':
                    '<br>Total basic allowances claimed, ex travel: '
                }, {
                    'type': 'text',
                    'subkey': 'TotalBasicAllowancesExcTravel'
                }, {
                    'type': 'text',
                    'value': '<br>Total Travel claimed: '
                }, {
                    'type': 'text',
                    'subkey': 'TotalTravelClaimed'
                }, {
                    'type': 'text',
                    'value': '<br>MP Mileage: '
                }, {
                    'type': 'text',
                    'subkey': 'Mileage'
                }, {
                    'type': 'text',
                    'value': '<br>MP Rail Travel: '
                }, {
                    'type': 'text',
                    'subkey': 'MPRail'
                }, {
                    'type': 'text',
                    'value': '<br>MP Air Travel: '
                }, {
                    'type': 'text',
                    'subkey': 'MPAir'
                }, {
                    'type': 'text',
                    'value': '<br>Cost of staying away from main home: '
                }, {
                    'type': 'text',
                    'subkey': 'CostofStayingAwayFromMainHome'
                }, {
                    'type': 'text',
                    'value': '<br>London Supplement: '
                }, {
                    'type': 'text',
                    'subkey': 'LondonSupplement'
                }, {
                    'type': 'text',
                    'value': '<br>Office Running Costs: '
                }, {
                    'type': 'text',
                    'subkey': 'OfficeRunningCosts'
                }, {
                    'type': 'text',
                    'value': '<br>Staffing Costs: '
                }, {
                    'type': 'text',
                    'subkey': 'StaffingCosts'
                }]
            })

    sw_371 = pipe_textinput(context,
                            forever,
                            conf={
                                'debug': {
                                    'type': 'text',
                                    'value': ''
                                },
                                'default': {
                                    'type': 'text',
                                    'value': 'Lancaster'
                                },
                                'prompt': {
                                    'type': 'text',
                                    'value': 'Name'
                                },
                                'name': {
                                    'type': 'text',
                                    'value': 'name'
                                },
                                'position': {
                                    'type': 'number',
                                    'value': ''
                                }
                            })

    sw_340 = pipe_csv(
        context,
        forever,
        conf={
            'other_sep': {
                'type': 'text',
                'value': ''
            },
            'URL': {
                'type':
                'url',
                'value':
                'file://data/spreadsheets.google.com_pub?key=p1rHUqg4g420UMaN1sPvaRg&output=csv&range=a1_AB646.csv'
            },
            'skip': {
                'type': 'number',
                'value': '0'
            },
            'col_name': [{
                'type': 'text',
                'value': 'Member'
            }, {
                'type': 'text',
                'value': 'firstName'
            }, {
                'type': 'text',
                'value': 'TotalAllowancesClaimedIncTravel'
            }, {
                'type': 'text',
                'value': 'TotalBasicAllowancesExcTravel'
            }, {
                'type': 'text',
                'value': 'TotalTravelClaimed'
            }, {
                'type': 'text',
                'value': 'CostofStayingAwayFromMainHome'
            }, {
                'type': 'text',
                'value': 'LondonSupplement'
            }, {
                'type': 'text',
                'value': 'OfficeRunningCosts'
            }, {
                'type': 'text',
                'value': 'StaffingCosts'
            }, {
                'type': 'text',
                'value': 'CentrallyPurchasedStationery'
            }, {
                'type': 'text',
                'value': 'StationeryAssocdPostageCosts'
            }, {
                'type': 'text',
                'value': 'CentralITProvision'
            }, {
                'type': 'text',
                'value': 'StaffCoverAndOtherCosts'
            }, {
                'type': 'text',
                'value': 'CommsAllowance'
            }, {
                'type': 'text',
                'value': 'Mileage'
            }, {
                'type': 'text',
                'value': 'MPRail'
            }, {
                'type': 'text',
                'value': 'MPAir'
            }, {
                'type': 'text',
                'value': 'MPMisc'
            }, {
                'type': 'text',
                'value': 'MPOtherMileage'
            }, {
                'type': 'text',
                'value': 'MPOtherRail'
            }, {
                'type': 'text',
                'value': 'MPOtherAir'
            }, {
                'type': 'text',
                'value': 'MPOtherEuropean'
            }, {
                'type': 'text',
                'value': 'SpouseTotal'
            }, {
                'type': 'text',
                'value': 'SpouseNumOfJourneys'
            }, {
                'type': 'text',
                'value': 'FamilyTotal'
            }, {
                'type': 'text',
                'value': 'FamilyNumOfJourneys'
            }, {
                'type': 'text',
                'value': 'EmployeeTotal'
            }, {
                'type': 'text',
                'value': 'EmployeeNumOfJourneys'
            }],
            'col_row_start': {
                'type': 'number',
                'value': '1'
            },
            'col_mode': {
                'type': 'text',
                'value': 'custom'
            },
            'separator': {
                'type': 'text',
                'value': ','
            },
            'col_row_end': {
                'type': 'number',
                'value': '1'
            }
        })

    sw_375 = pipe_filter(context,
                         sw_340,
                         RULE_1_value=sw_371,
                         conf={
                             'COMBINE': {
                                 'type': 'text',
                                 'value': 'and'
                             },
                             'MODE': {
                                 'type': 'text',
                                 'value': 'permit'
                             },
                             'RULE': [{
                                 'field': {
                                     'type': 'text',
                                     'value': 'Member'
                                 },
                                 'value': {
                                     'terminal': 'RULE_1_value',
                                     'type': 'text'
                                 },
                                 'op': {
                                     'type': 'text',
                                     'value': 'contains'
                                 }
                             }]
                         })

    sw_385 = pipe_rename(context,
                         sw_375,
                         conf={
                             'RULE': [{
                                 'field': {
                                     'type': 'text',
                                     'value': 'Member'
                                 },
                                 'op': {
                                     'type': 'text',
                                     'value': 'copy'
                                 },
                                 'newval': {
                                     'type': 'text',
                                     'value': 'title'
                                 }
                             }]
                         })

    sw_400 = pipe_loop(
        context,
        sw_385,
        embed=pipe_sw_408,
        conf={
            'assign_part': {
                'type': 'text',
                'value': 'all'
            },
            'assign_to': {
                'type': 'text',
                'value': 'description'
            },
            'emit_part': {
                'type': 'text',
                'value': 'all'
            },
            'mode': {
                'type': 'text',
                'value': 'assign'
            },
            'embed': {
                'type': 'module',
                'value': {
                    'type': 'strconcat',
                    'id': 'sw-408',
                    'conf': {
                        'part': [{
                            'type':
                            'text',
                            'value':
                            'Total allowances claimed, inc travel: '
                        }, {
                            'type': 'text',
                            'subkey': 'TotalAllowancesClaimedIncTravel'
                        }, {
                            'type':
                            'text',
                            'value':
                            '<br>Total basic allowances claimed, ex travel: '
                        }, {
                            'type': 'text',
                            'subkey': 'TotalBasicAllowancesExcTravel'
                        }, {
                            'type': 'text',
                            'value': '<br>Total Travel claimed: '
                        }, {
                            'type': 'text',
                            'subkey': 'TotalTravelClaimed'
                        }, {
                            'type': 'text',
                            'value': '<br>MP Mileage: '
                        }, {
                            'type': 'text',
                            'subkey': 'Mileage'
                        }, {
                            'type': 'text',
                            'value': '<br>MP Rail Travel: '
                        }, {
                            'type': 'text',
                            'subkey': 'MPRail'
                        }, {
                            'type': 'text',
                            'value': '<br>MP Air Travel: '
                        }, {
                            'type': 'text',
                            'subkey': 'MPAir'
                        }, {
                            'type':
                            'text',
                            'value':
                            '<br>Cost of staying away from main home: '
                        }, {
                            'type': 'text',
                            'subkey': 'CostofStayingAwayFromMainHome'
                        }, {
                            'type': 'text',
                            'value': '<br>London Supplement: '
                        }, {
                            'type': 'text',
                            'subkey': 'LondonSupplement'
                        }, {
                            'type': 'text',
                            'value': '<br>Office Running Costs: '
                        }, {
                            'type': 'text',
                            'subkey': 'OfficeRunningCosts'
                        }, {
                            'type': 'text',
                            'value': '<br>Staffing Costs: '
                        }, {
                            'type': 'text',
                            'subkey': 'StaffingCosts'
                        }]
                    }
                }
            },
            'with': {
                'type': 'text',
                'value': ''
            }
        })

    sw_573 = pipe_loop(context,
                       sw_400,
                       embed=pipe_sw_581,
                       conf={
                           'assign_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'assign_to': {
                               'type': 'text',
                               'value': 'title'
                           },
                           'emit_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'mode': {
                               'type': 'text',
                               'value': 'assign'
                           },
                           'embed': {
                               'type': 'module',
                               'value': {
                                   'type': 'strconcat',
                                   'id': 'sw-581',
                                   'conf': {
                                       'part': [{
                                           'type': 'text',
                                           'subkey': 'firstName'
                                       }, {
                                           'type': 'text',
                                           'value': ' '
                                       }, {
                                           'type': 'text',
                                           'subkey': 'Member'
                                       }]
                                   }
                               }
                           },
                           'with': {
                               'type': 'text',
                               'value': ''
                           }
                       })

    _OUTPUT = pipe_output(context, sw_573, conf={})

    return _OUTPUT
def pipe_188eca77fd28c96c559f71f5729d91ec(context=None,
                                          _INPUT=None,
                                          conf=None,
                                          **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [
            u'pipefetchpage', u'pipeitembuilder', u'pipeloop', u'pipeoutput',
            u'pipetruncate'
        ]

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_119(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_fetchpage(context,
                              _INPUT,
                              conf={
                                  'URL': {
                                      'type': 'url',
                                      'subkey': 'url'
                                  },
                                  'to': {
                                      'type': 'text',
                                      'value': '</tr>'
                                  },
                                  'token': {
                                      'type': 'text',
                                      'value':
                                      '<td style="TEXT-ALIGN: center">'
                                  },
                                  'from': {
                                      'type': 'text',
                                      'value': 'One Way</span>'
                                  }
                              })

    sw_163 = pipe_itembuilder(
        context,
        forever,
        conf={
            'attrs': {
                'value': {
                    'type': 'text',
                    'value':
                    'file://data/www.caltrain.com_Fares_farechart.html'
                },
                'key': {
                    'type': 'text',
                    'value': 'url'
                }
            }
        })

    sw_111 = pipe_loop(context,
                       sw_163,
                       embed=pipe_sw_119,
                       conf={
                           'assign_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'assign_to': {
                               'type': 'text',
                               'value': 'loop:fetchpage'
                           },
                           'emit_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'mode': {
                               'type': 'text',
                               'value': 'EMIT'
                           },
                           'embed': {
                               'type': 'module',
                               'value': {
                                   'type': 'fetchpage',
                                   'id': 'sw-119',
                                   'conf': {
                                       'URL': {
                                           'type': 'url',
                                           'subkey': 'url'
                                       },
                                       'to': {
                                           'type': 'text',
                                           'value': '</tr>'
                                       },
                                       'token': {
                                           'type':
                                           'text',
                                           'value':
                                           '<td style="TEXT-ALIGN: center">'
                                       },
                                       'from': {
                                           'type': 'text',
                                           'value': 'One Way</span>'
                                       }
                                   }
                               }
                           },
                           'with': {
                               'type': 'text',
                               'value': ''
                           }
                       })

    sw_287 = pipe_truncate(context,
                           sw_111,
                           conf={'count': {
                               'type': 'number',
                               'value': '100'
                           }})

    _OUTPUT = pipe_output(context, sw_287, conf=None)

    return _OUTPUT
def pipe_e65397e116d7754da0dd23425f1f0af1(context=None,
                                          _INPUT=None,
                                          conf=None,
                                          **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return []

    if context and context.describe_dependencies:
        return [
            u'pipefetch', u'pipeloop', u'pipeoutput', u'piperegex',
            u'piperename', u'pipeurlbuilder'
        ]

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_634(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_urlbuilder(context,
                               forever,
                               conf={
                                   'PATH': {
                                       'type': 'text',
                                       'value': ''
                                   },
                                   'BASE': {
                                       'type': 'text',
                                       'value': ''
                                   },
                                   'PARAM': [{
                                       'value': {
                                           'type': 'text',
                                           'value': 'qr'
                                       },
                                       'key': {
                                           'type': 'text',
                                           'value': 'cht'
                                       }
                                   }, {
                                       'value': {
                                           'type': 'text',
                                           'value': '200x200'
                                       },
                                       'key': {
                                           'type': 'text',
                                           'value': 'chs'
                                       }
                                   }, {
                                       'value': {
                                           'type': 'text',
                                           'subkey': 'link'
                                       },
                                       'key': {
                                           'type': 'text',
                                           'value': 'chl'
                                       }
                                   }]
                               })

    sw_565 = pipe_fetch(context,
                        forever,
                        conf={'URL': {
                            'type': 'url',
                            'value': ''
                        }})

    sw_626 = pipe_loop(context,
                       sw_565,
                       embed=pipe_sw_634,
                       conf={
                           'assign_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'assign_to': {
                               'type': 'text',
                               'value': 'media:content.url'
                           },
                           'emit_part': {
                               'type': 'text',
                               'value': 'all'
                           },
                           'mode': {
                               'type': 'text',
                               'value': 'assign'
                           },
                           'embed': {
                               'type': 'module',
                               'value': {
                                   'type': 'urlbuilder',
                                   'id': 'sw-634',
                                   'conf': {
                                       'PATH': {
                                           'type': 'text',
                                           'value': ''
                                       },
                                       'BASE': {
                                           'type': 'text',
                                           'value': ''
                                       },
                                       'PARAM': [{
                                           'value': {
                                               'type': 'text',
                                               'value': 'qr'
                                           },
                                           'key': {
                                               'type': 'text',
                                               'value': 'cht'
                                           }
                                       }, {
                                           'value': {
                                               'type': 'text',
                                               'value': '200x200'
                                           },
                                           'key': {
                                               'type': 'text',
                                               'value': 'chs'
                                           }
                                       }, {
                                           'value': {
                                               'type': 'text',
                                               'subkey': 'link'
                                           },
                                           'key': {
                                               'type': 'text',
                                               'value': 'chl'
                                           }
                                       }]
                                   }
                               }
                           },
                           'with': {
                               'type': 'text',
                               'value': ''
                           }
                       })

    sw_592 = pipe_rename(context,
                         sw_626,
                         conf={
                             'RULE': [{
                                 'field': {
                                     'type': 'text',
                                     'value': 'media:content.url'
                                 },
                                 'op': {
                                     'type': 'text',
                                     'value': 'copy'
                                 },
                                 'newval': {
                                     'type': 'text',
                                     'value': 'description'
                                 }
                             }]
                         })

    sw_636 = pipe_regex(
        context,
        sw_592,
        conf={
            'RULE': [{
                'field': {
                    'type': 'text',
                    'value': 'description'
                },
                'match': {
                    'type': 'text',
                    'value': '(.*)'
                },
                'replace': {
                    'type': 'text',
                    'value': '<img src="$1" alt="QRcode" /><br/>${title}'
                }
            }]
        })

    _OUTPUT = pipe_output(context, sw_636, conf={})

    return _OUTPUT
def pipe_125e9fe8bb5f84526d21bebfec3ad116(context=None,
                                          _INPUT=None,
                                          conf=None,
                                          **kwargs):
    # todo: insert pipeline description here
    conf = conf or {}

    if context and context.describe_input:
        return [(u'', u'textinput1', u'Enter Text', u'text', u'defunkt')]

    if context and context.describe_dependencies:
        return [
            u'pipefetchdata', u'pipeitembuilder', u'pipeloop', u'pipeoutput',
            u'piperename', u'pipetextinput', u'pipeurlbuilder'
        ]

    forever = pipe_forever()

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_72(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_urlbuilder(context, _INPUT, conf=conf)

    # We need to wrap submodules (used by loops) so we can pass the
    # input at runtime (as we can to subpipelines)
    def pipe_sw_150(context=None, _INPUT=None, conf=None, **kwargs):
        # todo: insert submodule description here
        return pipe_fetchdata(context, _INPUT, conf=conf)

    sw_479 = pipe_textinput(context,
                            forever,
                            conf={
                                'debug': {
                                    'type': 'text',
                                    'value': 'defunkt'
                                },
                                'default': {
                                    'type': 'text',
                                    'value': 'defunkt'
                                },
                                'prompt': {
                                    'type': 'text',
                                    'value': 'Enter Text'
                                },
                                'name': {
                                    'type': 'text',
                                    'value': 'textinput1'
                                },
                                'position': {
                                    'type': 'number',
                                    'value': ''
                                }
                            })

    sw_467 = pipe_itembuilder(context,
                              forever,
                              conf={
                                  'attrs': [{
                                      'value': {
                                          'terminal': 'attrs_1_value',
                                          'type': 'text'
                                      },
                                      'key': {
                                          'type': 'text',
                                          'value': 'title'
                                      }
                                  }]
                              },
                              attrs_1_value=sw_479)

    sw_61 = pipe_loop(context,
                      sw_467,
                      embed=pipe_sw_72,
                      conf={
                          'assign_part': {
                              'type': 'text',
                              'value': 'all'
                          },
                          'assign_to': {
                              'type': 'text',
                              'value': 'api'
                          },
                          'emit_part': {
                              'type': 'text',
                              'value': 'all'
                          },
                          'mode': {
                              'type': 'text',
                              'value': 'assign'
                          },
                          'embed': {
                              'type': 'module',
                              'value': {
                                  'type': 'urlbuilder',
                                  'id': 'sw-72',
                                  'conf': {
                                      'BASE': {
                                          'type':
                                          'text',
                                          'value':
                                          'https://api.github.com/search/users'
                                      },
                                      'PARAM': [{
                                          'value': {
                                              'type': 'text',
                                              'subkey': 'title'
                                          },
                                          'key': {
                                              'type': 'text',
                                              'value': 'q'
                                          }
                                      }]
                                  }
                              }
                          },
                          'with': {
                              'type': 'text',
                              'value': ''
                          }
                      })

    sw_142 = pipe_loop(context,
                       sw_61,
                       embed=pipe_sw_150,
                       conf={
                           'assign_part': {
                               'type': 'text',
                               'value': 'first'
                           },
                           'assign_to': {
                               'type': 'text',
                               'value': 'info'
                           },
                           'mode': {
                               'type': 'text',
                               'value': 'assign'
                           },
                           'embed': {
                               'type': 'module',
                               'value': {
                                   'type': 'fetchdata',
                                   'id': 'sw-150',
                                   'conf': {
                                       'URL': {
                                           'type': 'url',
                                           'subkey': 'api'
                                       },
                                       'path': {
                                           'type': 'text',
                                           'value': 'items'
                                       }
                                   }
                               }
                           },
                           'with': {
                               'type': 'text',
                               'value': ''
                           }
                       })

    sw_351 = pipe_rename(context,
                         sw_142,
                         conf={
                             'RULE': [{
                                 'field': {
                                     'type': 'text',
                                     'value': 'language.0.content'
                                 },
                                 'op': {
                                     'type': 'text',
                                     'value': 'copy'
                                 },
                                 'newval': {
                                     'type': 'text',
                                     'value': 'description'
                                 }
                             }]
                         })

    _OUTPUT = pipe_output(context, sw_351, conf={})

    return sw_142