Parses incoming Sendgrid Webhooks in Pyramid apps
Project description
Parses incoming Sendgrid Webhooks in Pyramid apps
Free software: MIT license
Documentation: https://pyramid_sendgrid_webhooks.readthedocs.org.
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)
Credits
Tools used in rendering this package:
History
1.1.0 (2015-12-14)
Correct package listing in setup.py
1.0.0 (2015-12-07)
First release on PyPI.