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/jfhbrook/pyee> .
Metadata
Release files for pyee 1.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-1.0.2.tar.gz | 4.3 kB | Details |
Release files / pyee-1.0.2.tar.gz
| Download URL | pyee-1.0.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16944f91eb37c0acf7a370feef2c09678220963f24f38134703911f80b33d79c
|
|
BLAKE2b-256 checksum How to use checksums |
0ba6e429906d67498d0b85bd20f0ddc617d73586889241c64195b7feaeef55b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |