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)
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
Built Distribution
File details
Details for the file pyramid_sendgrid_webhooks-1.2.3.tar.gz
.
File metadata
- Download URL: pyramid_sendgrid_webhooks-1.2.3.tar.gz
- Upload date:
- Size: 68.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd7e1317952a71d4743cdc64578d468307dc3289d8fb4f2c2231a05e90c9f971 |
|
MD5 | 379624a40092349aa41d29a03b1a44e0 |
|
BLAKE2b-256 | ff9a4d8e4f0b95e17f2e3eba071b7b6a62f7d709c8ec35aea31924145766c9ff |
File details
Details for the file pyramid_sendgrid_webhooks-1.2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pyramid_sendgrid_webhooks-1.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35126b2dd274525b0e84a894aaa9a2497ac1789a90e817e2ec7ed009865798b8 |
|
MD5 | 2140279fe17dbb439eadad9c2416f936 |
|
BLAKE2b-256 | 6284d6a89131de13787f573190a64a9da74177d7e17dfc30d0b5826cc8cc507d |