A port of node.js's EventEmitter to python with mqtt topics support.
pyee supplies an event_emitter object that acts similar to the EventEmitter that comes with node.js.
In : from pyee import EventEmitter In : ee = EventEmitter() In : @ee.on('a/#/c') ...: def event_handler(): ...: print 'BANG BANG' ...: In : ee.emit('a/b/c') BANG BANG In :
There is the possibility to use mqtt topic patterns to match events
For more, visit <https://github.com/jesusabdullah/pyee> .