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.1
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.1.tar.gz | 2.3 kB | Details |
Release files / pyee-0.0.1.tar.gz
| Download URL | pyee-0.0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
261dae44e913561e8b9452073802cfd72880e7a5d1f51096a3eb4d170aa63b91
|
|
BLAKE2b-256 checksum How to use checksums |
4a3ab7a97a98bbe7833a1b4db794031da4e8909b226e4be5186b6d349607a976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |