Ported Bolt/BasicBolt and Spout over from Python Streamparse.