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.

Source Distribution

trunk-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file trunk-0.1.0.tar.gz.

File metadata

  • Download URL: trunk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for trunk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8b06f34693742b6c375c0e14ac6546205beb97d3d4eaaa693afe0d7b04441630
MD5 2ab1b9ae43fe8583a426d9650fc5745f
BLAKE2b-256 17ef1ae733487084d66445ceda6f5d19e71366e13df4d077d3a6cda7c067f54e

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