Python + Webhooks mMade Easy
Project description
Python + Webhooks Made Easy
Free software: BSD license
Documentation: http://webhooks.rtfd.org.
WARNING This project is in a pre-alpha state. It’s not ready for use on ANYTHING.
Python Versions
Currently works in:
Python 2.7
Python 3.3
PyPy
Existing Features
Easy to integrate into any package or project
Comes with several built-in senders for synchronous webhooks.
Extendable functionality through the use of custom senders and hash functions.
Planned Features
Comes with numerous built-in senders for synchronous and asynchronous webhooks.
Special functions for combining multiple sends of identical payloads going to one target into one.
Follows http://resthooks.org patterns
Great documentation
Great tests
Usage
Follow these easy steps:
Import the webhook decorator.
Define a function that returns a JSON-serializable dictionary or iterable.
Add the webhook decorator and pass in a sender_callable.
Call the function!
Synchronous example (async examples to come soon):
from webhooks import webhook
from webhooks.senders import targeted
@webhook(sender_callable=targeted.sender)
def basic(url, wife, husband):
return {"husband": husband, "wife": wife}
basic(url="http://httpbin.org/post", "Danny", "Audrey")
Projects Powered by Webhooks
History
0.2.0 (2014-05-13)
Added functioning hook decorator.
Ramped up test coverage.
Hash functions placed in their own module.
Cleaned up JSON encoder thanks to Audrey Roy Greenfeld!
0.1.0 (2014-05-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
File details
Details for the file webhooks-0.2.0.tar.gz
.
File metadata
- Download URL: webhooks-0.2.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a00be2e1fe5da82ac076b0c69ca383cce98dda8c9baaffeb6b96f52b57790bdc |
|
MD5 | 472b2f319bf5e06141d4fe4b2866a28d |
|
BLAKE2b-256 | 4baf257e06890328156a2e865a1e30b3343df20f51864518a4d50e7a5d90d3a5 |