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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyee-0.0.1.tar.gz
Algorithm Hash digest
SHA256 261dae44e913561e8b9452073802cfd72880e7a5d1f51096a3eb4d170aa63b91
MD5 2a1c81c7365e0aa055023b3d779bc193
BLAKE2b-256 4a3ab7a97a98bbe7833a1b4db794031da4e8909b226e4be5186b6d349607a976

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