skip to navigation
skip to content

Not Logged In

pyee 0.0.6

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

Latest Version: 0.0.9

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

Example:

In [1]: from pyee import Event_emitter

In [2]: ee = Event_emitter()

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.6.tar.gz (md5) Source 2012-09-01 3KB
  • Downloads (All Versions):
  • 12 downloads in the last day
  • 141 downloads in the last week
  • 702 downloads in the last month