Skip to main content

Event dispatcher (see

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.

PyPI Versions Documentation Status Coverage License Status


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>



Made with ♥ by Romain Dorgueil and contributors.

License Status

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
whistle-1.0.1-py3.5.egg (7.3 kB) Copy SHA256 hash SHA256 Egg 3.5 Mar 18, 2018
whistle-1.0.1-py3.6.egg (7.3 kB) Copy SHA256 hash SHA256 Egg 3.6 Mar 18, 2018
whistle-1.0.1-py3-none-any.whl (5.9 kB) Copy SHA256 hash SHA256 Wheel py3 Mar 18, 2018
whistle-1.0.1.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None Mar 18, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page