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.8
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.8.tar.gz | 3.6 kB | Details |
Release files / pyee-0.0.8.tar.gz
| Download URL | pyee-0.0.8.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1d5ac95e7b4b5936a2b5bf15139ad73eacdb009cda584f17239986675e48cf0
|
|
BLAKE2b-256 checksum How to use checksums |
10bdc9cf5962611d35aef2a81c6d07e1b6fbbe7ef2ca914ddc54154d4b40297c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |