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('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> .
Metadata
Release files for pyee 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyee-0.1.0.tar.gz | 3.1 kB | Details |
Release files / pyee-0.1.0.tar.gz
| Download URL | pyee-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4efc71bd3f1e13a6b023025df845645dc2c0850245b6e3d552c53e8ea311cbd
|
|
BLAKE2b-256 checksum How to use checksums |
e7b39374d171fbaef54e5b5caf8cabec68558a02e2cc2a770e686b1702570004
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |