A small implementation of signals, inspired by a snippet of Django signal
Use the package manager pip to install foobar.
pip install python_signal#Define NameSpace
from python_signal import Namespace
_signals = Namespace()
#reciever
user_login = _signals.signal('user_login')
@user_login.connect
def after_user_login(current_user):
pass
#sender
user_login.send(user)Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.