Skip to main content

Parses incoming Sendgrid Webhooks in Pyramid apps

Project description

https://img.shields.io/pypi/v/pyramid_sendgrid_webhooks.svg https://img.shields.io/travis/GoodRx/pyramid-sendgrid-webhooks.svg 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


Download files

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

Source Distribution

pyramid_sendgrid_webhooks-1.2.3.tar.gz (68.8 kB view details)

Uploaded Source

Built Distribution

pyramid_sendgrid_webhooks-1.2.3-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyramid_sendgrid_webhooks-1.2.3.tar.gz.

File metadata

File hashes

Hashes for pyramid_sendgrid_webhooks-1.2.3.tar.gz
Algorithm Hash digest
SHA256 cd7e1317952a71d4743cdc64578d468307dc3289d8fb4f2c2231a05e90c9f971
MD5 379624a40092349aa41d29a03b1a44e0
BLAKE2b-256 ff9a4d8e4f0b95e17f2e3eba071b7b6a62f7d709c8ec35aea31924145766c9ff

See more details on using hashes here.

File details

Details for the file pyramid_sendgrid_webhooks-1.2.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_sendgrid_webhooks-1.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 35126b2dd274525b0e84a894aaa9a2497ac1789a90e817e2ec7ed009865798b8
MD5 2140279fe17dbb439eadad9c2416f936
BLAKE2b-256 6284d6a89131de13787f573190a64a9da74177d7e17dfc30d0b5826cc8cc507d

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