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.
Release files for trunk 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trunk-0.3.0.tar.gz | 4.1 kB | Details |
Release files / trunk-0.3.0.tar.gz
| Download URL | trunk-0.3.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29da400d7d7f7685e2a834a78fbccaf2feeb04f7892763c0c0f7b75ed27a1c0a
|
|
BLAKE2b-256 checksum How to use checksums |
7af1104742c3842bafe5d426dd19e5e8c5cac08f472d8b9b82d5edd3756b49c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |