Skip to content
Python callbacks library using decorators.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
callbacks
examples
tests
.coveragerc
.gitignore
.travis.yml
README.md
requirements.txt
setup.cfg
setup.py
test-requirements.txt
tox.ini

README.md

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!"
You can’t perform that action at this time.