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.

Source Distribution

pyee-0.0.5.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file pyee-0.0.5.tar.gz.

File metadata

  • Download URL: pyee-0.0.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyee-0.0.5.tar.gz
Algorithm Hash digest
SHA256 dea40cae695c8a7fb447ae5bf82760c87b8725defdf68ce28c66c7b3f6820ab1
MD5 45e6a16dada00748e110f3a683af260b
BLAKE2b-256 abdf72d6dff42183ff95d4060540b0feb2a7e91457832e9cc60ee594c6346f2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page