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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a12c0c89d34d249310effa4ff3689bc61b73407db575baeb5abde8d7b594f3 |
|
MD5 | d6dce69763b29f858febc1cc49b7cd75 |
|
BLAKE2b-256 | 0663057e1a28cc94cb9ed407c4351e5786c0de1325fa362ccbf01b26b91b6605 |
Close
Hashes for babichjacob_emitter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 878b90703f7a91e5a53f3ecc6d2d302cafc44f7ad3a04b2cd5affeed3ed4d7dd |
|
MD5 | 8bcb322d3f7e32bc7126754e250e9beb |
|
BLAKE2b-256 | e390125e9fa2e19473f50f241abbceb6b60c1f43994b939ed26698918cac95b9 |