def main(transformation): funcs = list(map(_generate_function, transformation)) input = default_unpacker() output = default_packer() for header, d in input: d = _call_funcs(funcs, d, header) output.send(d, header=header)
def main(interval=0.1): output = default_packer() while True: output.send({'time': time.time()}) time.sleep(interval)