pyee
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.0.9
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.9.tar.gz | 4.0 kB | Details |
Release files / pyee-0.0.9.tar.gz
| Download URL | pyee-0.0.9.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fc0d1380f7eb308ff8324285f82beb62f39bb1e12781397622eda8ca420762b
|
|
BLAKE2b-256 checksum How to use checksums |
37401c48476756c3cdf4e0d1f13d3f6af5ab8f64d6a7f0b69203807dd58c4b79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |