whistle 2.0.1
pip install whistle
Latest version
Released:
Event dispatcher (see python-whistle.github.io).
Navigation
Unverified details
These details have not been verified by PyPIMeta
- Author: Romain Dorgueil
- Requires: Python <4.0, >=3.9
Classifiers
- Programming Language
Project description
Whistle is a lightweight python library that allow your application components to communicate with each other by dispatching events and listening to them.
Homepage: https://python-whistle.github.io/
Install
pip install whistle
Quick start
Install the whistle package:
$ pip install whistle
Create an event dispatcher:
from whistle import EventDispatcher
dispatcher = EventDispatcher()
Add a listener to react to events
def on_spectacle_starts(event):
print('Please turn down your phones!')
dispatcher.add_listener('spectacle.starts', on_spectacle_starts)</code></pre>
Dispatch!
dispatcher.dispatch('spectacle.starts')
Made with ♥ by Romain Dorgueil and contributors.
Project details
Unverified details
These details have not been verified by PyPIMeta
- Author: Romain Dorgueil
- Requires: Python <4.0, >=3.9
Classifiers
- Programming Language
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
File details
Details for the file whistle-2.0.1.tar.gz
.
File metadata
- Download URL: whistle-2.0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ebbbe8328fe91d7c2908f656f7378b7ae4b1db4c1dd27b8f04abee7d787780 |
|
MD5 | fbf2d984533042e489060f4caef3bbc3 |
|
BLAKE2b-256 | 54172bda079bc2e661b6232b9f914f5ca83c06706dd7e3ae22086371c2af68a1 |
File details
Details for the file whistle-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: whistle-2.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b187f3e6443a1ee354fce02bdc46e540420deb08c33f90fda8772873677e0b9 |
|
MD5 | 7f656d38b8dee1bb7fe49d06fc065fcd |
|
BLAKE2b-256 | 11decef75761cae833ae496a07c58ebfb54c48d88b61f2bc3fb80d0bcd16fb6a |