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.3
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.3.tar.gz | 2.4 kB | Details |
Release files / pyee-0.0.3.tar.gz
| Download URL | pyee-0.0.3.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14dd4443b07733cba94025acf02dd1150d0709deab0da69368338fcd3222e8e8
|
|
BLAKE2b-256 checksum How to use checksums |
52816dcc53b414eb99c13248ccb967423ecdc253aa0b9d19417e0f04d12fc23e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |