Skip to main content

C# like event handler (pubsub)

Project description

messaging

A simple event handling package.

Almost all application are event driven, for instead , when a serial port is open you want to notify other objects that want to use it. The module provide a clear interface like C# event handlers.

from events.event import Event;
from events.eventhandler import EventHandler;
def OnClicked(event):
    print(event.Type);
    
handler  = EventHandler();
handler += OnClicked;
handler(Event('SERIAL_OPEN');

Project details


Download files

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

Source Distribution

jimobama_events-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page