📻 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
Release files for babichjacob-emitter 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| babichjacob_emitter-0.2.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| babichjacob_emitter-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / babichjacob_emitter-0.2.0.tar.gz
| Download URL | babichjacob_emitter-0.2.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff3ca375a6ad1e6e0864c214ccf4e4050d0f6e878143fd289ac52ae135c6880e
|
|
BLAKE2b-256 checksum How to use checksums |
72b0ba09f9af2cf17c4cf17709598b0eb526963d70412cda3324a4c3eb9b2948
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/5.15.0-1034-azure
|
Release files / babichjacob_emitter-0.2.0-py3-none-any.whl
| Download URL | babichjacob_emitter-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02849e0f4db477130add3c0a00a3206458bda0be4c20bee364dc0fe233def069
|
|
BLAKE2b-256 checksum How to use checksums |
3d5b3e55b2eeff18cb3baaf412781f7048e757c5eb57eeb015490a8bb4cdb8b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/5.15.0-1034-azure
|