Skip to main content

Trigger webhooks from postgres

Project description


Implements a simple server process that listens to Postgres notifications, then fires off a webhook in response.

The content of the message is sent as the JSON payload to the webhook.

You can use this to invoke AWS Lambda functions (fronted by API gateway) or any other system that receives HTTP requests.

Install it as follows:

pip install pg-notify-webhook

You simply set up a config.yaml with the database connection string and define one or more channels and webhooks. Then start the server as follows:


Once the server is running, you can send notifications from Postgres:

NOTIFY one, '{"name": "Vijay"}'

DSN: postgresql://user:password@hostname:5432/database
  - one
  - two

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pg-notify-webhook, version 1.3
Filename, size File type Python version Upload date Hashes
Filename, size pg-notify-webhook-1.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page