Eventer is a simple event dispaching library.
It provides a simple API to bind and trigger custom named events. Events do not have to be declared before they are bound.
import eventer
def on_edit(page):
subject = page.path + " is edited"
sendmail(subject=subject)
eventer.bind("edit", on_edit)
eventer.trigger("edit", page)
The API is inspired by event handling in jQuery and backbone.js.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eventer-0.1.1.tar.gz
(1.9 kB
view details)
File details
Details for the file eventer-0.1.1.tar.gz.
File metadata
- Download URL: eventer-0.1.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ba2c8d053b30f505432aa0007fa0da67cb833a1bf3578141d96db9e0d238205
|
|
| MD5 |
5364d526a07306adbe2785625c8d74e3
|
|
| BLAKE2b-256 |
976a5b8a32957ae17be07573a009eb412354ad85387c1c5873d43159abedd1ca
|