callbacks

Simple callbacks using decorators


License
Other
Install
pip install callbacks==0.3.0

Documentation

Callbacks lets you use decorator syntax to set callbacks on methods or functions.

from callbacks import supports_callbacks

def callback():
    print "Polly!"

@supports_callbacks
def target():
    print "hello",

target.add_callback(callback)

target() # prints "hello Polly!"

Build Status Coverage Status