Skip to main content

Easily LISTEN to PostgreSQL NOTIFY notifications

Project description

pgnotify: Easily LISTEN to PostgreSQL NOTIFY notifications

LISTEN to and process NOTIFY events with a simple for loop, like so:

from pgnotify import await_pg_notifications

for notification in await_pg_notifications(
        'postgresql:///nameofdatabase',
        ['nameoflisteningchannel', 'nameoflisteningchannel2']):

    print(notification.channel)
    print(notification.payload)

More docs to come.

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

pgnotify-0.1.1541156696.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

pgnotify-0.1.1541156696-py2.py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 2 Python 3

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