Skip to main content

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

MIT

Project details


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)

Uploaded Source

Built Distribution

python_signal-0.0.2-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page