callbacks icon indicating copy to clipboard operation
callbacks copied to clipboard

Python callbacks library using decorators.

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

Build Status Coverage Status

from callbacks import supports_callbacks

def callback():
    print "Polly!"

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

target.add_callback(callback)

target() # prints "hello Polly!"