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
Release files for python-signal 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_signal-0.0.2.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_signal-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / python_signal-0.0.2.tar.gz
| Download URL | python_signal-0.0.2.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
909fa83fa172e1e76c0cf5671a0f8c6e69aa7038b9eb28e163f65a62fda8a109
|
|
BLAKE2b-256 checksum How to use checksums |
8e115af7648540579babe67b1f13420b6df4c1617f9a5fe48edd411d327ff6ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.6
|
Release files / python_signal-0.0.2-py3-none-any.whl
| Download URL | python_signal-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db148539560c6802cfb04e29b347cf8dea4b38a359e0af8a74b4fac5eed203f6
|
|
BLAKE2b-256 checksum How to use checksums |
d6203db690af7c951c707e35b194e1608a9b911bb829e4207401b4230e145005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.6
|