Skip to main content

Parses incoming Sendgrid Webhooks in Pyramid apps

Project description

Documentation Status

Parses incoming Sendgrid Webhooks in Pyramid apps

Features

To use this app, add a configuration statement with your intended webhook callback path:

config.include('pyramid_sendgrid_webhooks', '/sendgrid/webhooks')

Then, set up subscribers for any events that you want to be notified of:

from pyramid_sendgrid_webhooks import events

def handle_bounce(event):
    request = event.request
    print event.reason

...
config.add_subscriber(handle_bounce, events.BounceEvent)

Currently the app adds a single endpoint at {PREFIX}/receive. This will be the webhook path to give to Sendgrid. In the example above, the full endpoint would therefore be at /sendgrid/webhooks/receive.

Credits

Tools used in rendering this package:

History

1.2.2 (2015-12-15)

  • Updating documentation with modules

1.2.1 (2015-12-15)

  • Update trove classifiers

1.2.0 (2015-12-14)

  • Correct package listing in setup.py

1.0.0 (2015-12-07)

  • First release on PyPI.

Project details


Release history Release notifications

This version
History Node

1.2.3

History Node

1.2.2

History Node

1.2.1

History Node

1.2.0

History Node

1.1.0

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyramid_sendgrid_webhooks-1.2.3-py2.py3-none-any.whl (8.4 kB) Copy SHA256 hash SHA256 Wheel 2.7 Dec 22, 2015
pyramid_sendgrid_webhooks-1.2.3.tar.gz (68.8 kB) Copy SHA256 hash SHA256 Source None Dec 22, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page