Skip to main content

Signal dispatcher

Project description

sigdis

PyPI - Version PyPI - Python Version

Signal dispatcher


Table of Contents

Installation

pip install sigdis

License

sigdis is distributed under the terms of the MIT license.

Usage

from sigdis import Signal

app_started = Signal()


@app_started.connect
def do_some_actions(data, **_):
    print("DATA:", data)


app_started.send(data="test")

Check out tests for more.

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

sigdis-1.0.1.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

sigdis-1.0.1-py3-none-any.whl (3.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