Skip to content

blueromans/PythonSignal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonSignal Signal/Event Python PyPackage

A small implementation of signals, inspired by a snippet of Django signal

Installation

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)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

A small implementation of signals, inspired by a snippet of Django signals

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages