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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file python_signal-0.0.2.tar.gz.

File metadata

  • Download URL: python_signal-0.0.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for python_signal-0.0.2.tar.gz
Algorithm Hash digest
SHA256 909fa83fa172e1e76c0cf5671a0f8c6e69aa7038b9eb28e163f65a62fda8a109
MD5 05de02dfdc6c83f9565ee5453bcba06e
BLAKE2b-256 8e115af7648540579babe67b1f13420b6df4c1617f9a5fe48edd411d327ff6ea

See more details on using hashes here.

File details

Details for the file python_signal-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_signal-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db148539560c6802cfb04e29b347cf8dea4b38a359e0af8a74b4fac5eed203f6
MD5 88aff6d45bae7121c5171821e6fda59d
BLAKE2b-256 d6203db690af7c951c707e35b194e1608a9b911bb829e4207401b4230e145005

See more details on using hashes here.

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