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.1539665961.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

pgnotify-0.1.1539665961-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pgnotify-0.1.1539665961.tar.gz.

File metadata

  • Download URL: pgnotify-0.1.1539665961.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.11.5 CPython/3.7.0 Linux/4.4.0-137-generic

File hashes

Hashes for pgnotify-0.1.1539665961.tar.gz
Algorithm Hash digest
SHA256 a5882135f2f17eb2b1b0bbfb513d0bdd0b4e92ca360e2d79f22fdf187bbdcf0d
MD5 a486bbee28e53bbdf225193605c0a6e5
BLAKE2b-256 05309540dc345b9f71fa3a215b0cf4c8e874d2dd720698f7855e39ae247affc3

See more details on using hashes here.

File details

Details for the file pgnotify-0.1.1539665961-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pgnotify-0.1.1539665961-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 28dbd4f836668bb0e31cbbb81c196902efd1449dbb96e8823fcb4e6cd4e27cca
MD5 3f78104e929cd1ea8b2c5588d75258a4
BLAKE2b-256 0a1d574a127c3eae2a7ae4d3581648a7a9cc7fed138cb9d84d866a5fbab274e7

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