Django Model Webhooks
A plug-and-play Django app for sending outgoing webhooks on model changes.
Note: This is a maintained fork of danihodovic/django-webhook, originally created by Dani Hodovic. The upstream project has been inactive since 2024 with unmerged fixes; this fork continues active maintenance, bug fixes, and improvements under the same MIT license. See Credits below.
Django has a built-in signal system which allows programmers to schedule functions to be executed on model changes. django-model-webhooks leverages the signal system together with Celery to send HTTP requests when models change.
Suppose we have a User model
class User(models.Model):
name = models.CharField(max_length=50)
age = models.PositiveIntegerField()
If a webhook is configured, any time the above model is created, updated or deleted, django-model-webhooks will send an outgoing HTTP request to a third party:
POST HTTP/1.1
host: webhook.site
user-agent: python-urllib3/2.0.3
django-webhook-uuid: 5e2ee3ba-905e-4360-94bf-18ef21c0e844
django-webhook-signature-v1:
django-webhook-request-timestamp: 1697818014
{
"topic": "users.User/create",
"object": {
"id": 3,
"name": "Jesse Amarquaye",
"age": 30
},
"object_type": "users.User",
"webhook_uuid": "5e2ee3ba-905e-4360-94bf-18ef21c0e844"
}
🔥 Features
- Automatically sends webhooks on model changes
- Leverages Celery for processing
- Webhook authentication using HMAC
- Retries with exponential backoff
- Admin integration
- Audit log with past webhook events
- Protection from replay attacks
- Allows rotating webhook secrets
📖 Documentation
https://django-webhook.readthedocs.io
Credits
This project began as django-webhook by Dani Hodovic and other upstream contributors. All credit for the original design and implementation goes to them. This fork exists to keep the project maintained, patched, and available on PyPI under active development.
Made with contrib.rocks.
Disclaimer
Django model webhooks is provided as-is and does not require frequent updates. While it remains functional and usable, future updates will be made only if necessary. If you find the project useful but notice a lack of recent activity, this does not mean it is abandoned. Contributions are welcome via pull requests.
Metadata
Release files for django-model-webhooks 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_model_webhooks-0.1.1.tar.gz | 379.0 kB | Without provenance | Details for django_model_webhooks-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_model_webhooks-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for django_model_webhooks-0.1.1-py3-none-any.whl |
Total release size: 394.2 kB
Release files / django_model_webhooks-0.1.1.tar.gz
| Download URL | django_model_webhooks-0.1.1.tar.gz |
|---|---|
| Size | 379.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
873acf270847ec1bf9f6c5f114e73648ce2c127868f0906f08cb4639477e3ffd
|
|
BLAKE2b-256 checksum How to use checksums |
14c40d5029bac412186ed8a21ebe26baacfa78a2e73492e8142511c6481ed04e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / django_model_webhooks-0.1.1-py3-none-any.whl
| Download URL | django_model_webhooks-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecde6167ba0f06491ffbdec16410b146b971f2ca0ab50cc438d69444200a7e03
|
|
BLAKE2b-256 checksum How to use checksums |
71ee8a096f5e2510e53ce476eec58a2db71849b6e1f7733ebd386ddae50793f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for django-model-webhooks 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.