Exemple #1
0
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)
Exemple #2
0
def main(interval=0.1):
	output = default_packer()
	while True:
		output.send({'time': time.time()})
		time.sleep(interval)