Skip to main content

Making postgres listen/notify easier.

Project description

Installing

To install :

pip install trunk

Usage

Trunk tries to be as simple as possible

t = Trunk("postgres://localhost/noclue")
for notification in t.listen("clues"):
    print notification.channel, notification.payload
t.notify("clues", "chandelier")
t.unlisten("clues")

Celery

Trunk provides a Kombu transport, that allows you to use trunk with Celery, to do configure Celery with

BROKER_URL = 'trunk.transport.Transport://localhost/database'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for trunk, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size trunk-0.1.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page