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.7.tar.gz (3.5 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyee-0.0.7.tar.gz
Algorithm Hash digest
SHA256 429dc88845aae383c45a56db79c3be8287acfc8053ef0afebf8acd8ae1f909a6
MD5 f0648dafd1d6beab63a19049d2cfb225
BLAKE2b-256 c57795a36168f516f3a6d60bfa31dbc0848d14dd1d98096ac6c507320ca63cac

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