skip to navigation
skip to content

Not Logged In

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.

Example

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')
BANG BANG

In [5]:

Easy-peasy.

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

For more, visit <https://github.com/jesusabdullah/pyee> .

 
File Type Py Version Uploaded on Size
pyee-topics-0.0.11.tar.gz (md5) Source 2014-06-23 4KB
  • Downloads (All Versions):
  • 25 downloads in the last day
  • 109 downloads in the last week
  • 396 downloads in the last month