skip to navigation
skip to content

Not Logged In

trunk 0.3.0

Making postgres listen/notify easier.

Installing

To install :

pip install trunk

Usage

Trunk tries to be as simple as possible

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

Celery

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

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

Setup

You will need to create a new table and add two functions to your database. See table.sql and ddl.sql.

 
File Type Py Version Uploaded on Size
trunk-0.3.0.tar.gz (md5) Source 2013-02-13 3KB
  • Downloads (All Versions):
  • 17 downloads in the last day
  • 64 downloads in the last week
  • 267 downloads in the last month