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> .
Metadata
Release files for pyee 0.0.2
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.0.2.tar.gz | 2.3 kB | Details |
Release files / pyee-0.0.2.tar.gz
| Download URL | pyee-0.0.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51818e2c9489858938f6e38890b66ef4abb8130db83b46b0adefdce1648e007f
|
|
BLAKE2b-256 checksum How to use checksums |
590cddd90817be5fc76b1941958a3dcfcaf0cfa47d2d2a64c1d2111dc4951310
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |