A port of node.js's EventEmitter to python.
Project description
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> .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyee-0.0.5.tar.gz
(3.1 kB
view hashes)