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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pgnotify-0.1.1541156696-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c592960a2134fcb4dfac0b6af2953bd2339fa337294f298687bf13fe4fee1ad |
|
MD5 | 99fe1f49022e9e7fb46ab958fbc61064 |
|
BLAKE2b-256 | 7560775dfa2d6fc8c99b24ab4595c6ebcc1f7b8b0853a099cc9f0b469ad2e2c0 |