skip to navigation
skip to content

pyee-topics 0.0.11

A port of node.js's EventEmitter to python with mqtt topics support.

Latest Version: 0.0.13

pyee supplies an event_emitter object that acts similar to the EventEmitter that comes with node.js.


In [1]: from pyee import EventEmitter

In [2]: ee = EventEmitter()

In [3]: @ee.on('a/#/c')
   ...: def event_handler():
   ...:     print 'BANG BANG'

In [4]: ee.emit('a/b/c')

In [5]:


There is the possibility to use mqtt topic patterns to match events

For more, visit <> .

File Type Py Version Uploaded on Size
pyee-topics-0.0.11.tar.gz (md5) Source 2014-06-23 4KB