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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pgnotify-0.1.1541156696.tar.gz
Algorithm Hash digest
SHA256 7234bc53fa537ff387cd23f2b7d438140d73e8739781a0d52e13498f292361ec
MD5 df2c3e59634a9e1804c2076871717b3e
BLAKE2b-256 23f21abaaa3040e4400dbab30be38cb99b151170868e583bb6d124c1aef1440c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pgnotify-0.1.1541156696-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9c592960a2134fcb4dfac0b6af2953bd2339fa337294f298687bf13fe4fee1ad
MD5 99fe1f49022e9e7fb46ab958fbc61064
BLAKE2b-256 7560775dfa2d6fc8c99b24ab4595c6ebcc1f7b8b0853a099cc9f0b469ad2e2c0

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