Skip to main content

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.

Metadata

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)

Source distribution for trunk 0.3.0
File Size Uploaded Provenance
trunk-0.3.0.tar.gz 4.1 kB Without provenance 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

Security for trunk 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page