Skip to main content

A port of node.js's EventEmitter to python with mqtt topics support.

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 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> .

Project details


Release history Release notifications

History Node

0.0.13

History Node

0.0.12

History Node

0.0.11

This version
History Node

0.0.10

History Node

0.0.9

History Node

0.0.8

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-topics-0.0.10.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None Jun 22, 2014

Supported by

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