skip to navigation
skip to content

Not Logged In

pyee 0.0.9

A port of node.js's EventEmitter to python.

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('event')
   ...: def event_handler():
   ...:     print 'BANG BANG'
   ...:

In [4]: ee.emit('event')
BANG BANG

In [5]:

Easy-peasy.

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

 
File Type Py Version Uploaded on Size
pyee-0.0.9.tar.gz (md5) Source 2013-04-29 3KB
  • Downloads (All Versions):
  • 13 downloads in the last day
  • 146 downloads in the last week
  • 745 downloads in the last month