Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

package description

Project description

Class EventManager:

provide event sending and listening. use a hashable key to identify an event.

def f(data):
    print data

manager = EventManager()
manager.start() # start listen

manager.addListener(key='evnet_key', listener=f)

manager.sendEvent(key='evnet_key', data={msg:'hello'})


# other methods
manager.removeListener(key='evnet_key', f)
manager.stop() # stop listen
manager.clear() # clear event

Change Log

v0.0.2, 2018-11-8

  • change to run with python3

Project details


Download files

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

Files for sine.event, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size sine.event-0.0.2.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View hashes

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