An event emitter
Project description
📻 Emitter
This library provides the emitter data type. An emitter calls listening handlers whenever an event is emitted. This allows the separation of sourcing an event and reacting to it.
💻 Installation
This package is published to PyPI as babichjacob-emitter
.
🛠 Usage
from emitter import emittable
my_emitter = emittable()
my_emitter.listen(lambda event: print(f"Received the event {event}"))
my_emitter.emit(23) # "Received the event 23" gets printed
😵 Help! I have a question
Create an issue and I'll try to help.
😡 Fix! There is something that needs improvement
Create an issue or pull request and I'll try to fix.
📄 License
MIT
🙏 Attribution
This README was generated with ❤️ by readme-md-generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for babichjacob_emitter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3687d0bc9296bfda0a881c0e1bbda6a5546274f76d64172d6db10925c67768f |
|
MD5 | ceac98591ce50f7b2c9cfb3a1045ee23 |
|
BLAKE2b-256 | 9752b99e91f481a29cca40a9e2479b94898bf8d5d399f7fdf4580b840a5c4508 |
Close
Hashes for babichjacob_emitter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc058cda53b982e83eef1774db0b152ac8e9382a97467ff644a9778a66367aa2 |
|
MD5 | 2acff206169277884303dab129034765 |
|
BLAKE2b-256 | 63ed0bfb18ee8a8ac97fed593bdf5db13873ed40cf8f399ffab8dde6f297e4e1 |