Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyee-0.0.4.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None Aug 2, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page