Python Signal Event Python package
Project description
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_sginal
#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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_signal-0.0.2.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for python_signal-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db148539560c6802cfb04e29b347cf8dea4b38a359e0af8a74b4fac5eed203f6 |
|
MD5 | 88aff6d45bae7121c5171821e6fda59d |
|
BLAKE2b-256 | d6203db690af7c951c707e35b194e1608a9b911bb829e4207401b4230e145005 |