Skip to main content

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.

Source Distribution

sine.event-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file sine.event-0.0.2.tar.gz.

File metadata

  • Download URL: sine.event-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.2

File hashes

Hashes for sine.event-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7290d045cba35fbbaf5382db533696ed6379b4fa461c3721c3cf9c7f26ce01b4
MD5 701fbb169d21dcdfc228bb8a31e07a4e
BLAKE2b-256 5cba2778c948552eaf589c2a7622642eee60363cbdb54f8ed31e4ddb9c1fb778

See more details on using hashes here.

Supported by

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