A Django application that logs requests and responses to your project for auditing or troubleshooting purposes.
Project description
Django Rapyd Wiretap
A Django middleware that logs HTTP requests and responses to your database for auditing or troubleshooting purposes. Unlike similar packages, it works in production — logging is not gated on settings.DEBUG.
Inspired by nathforge/django-wiretap.
Install
```bash pip install django-rapyd-wiretap ```
Quickstart
-
Add
wiretaptoINSTALLED_APPS:```python INSTALLED_APPS = [ ... "wiretap", ] ```
-
Add the middleware to
MIDDLEWARE:```python MIDDLEWARE = [ ... "wiretap.middleware.WiretapMiddleware", ] ```
-
Apply migrations:
```bash python manage.py migrate ```
Usage
In the Django admin, create a Tap to configure which requests to capture:
- Path — a Python regex matched against the full request path.
- Is active — deactivate a tap without deleting it.
Examples
| Goal | Path regex |
|---|---|
Capture all /api/ traffic |
^/api/ |
| Capture everything | / |
| Capture a specific endpoint | ^/api/v1/payments/$ |
Each matched request is stored as a Message with the request method, path, headers, body, response status, and timing information. Messages are read-only in the admin.
Supported versions
| Package | Versions |
|---|---|
| Python | 3.10, 3.11, 3.12, 3.13 |
| Django | 4.2 LTS, 5.2 LTS |
Contributing
See CONTRIBUTING.md for development setup, test commands, and the release process.
License
Apache 2.0. See LICENSE.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_rapyd_wiretap-0.1.0.tar.gz.
File metadata
- Download URL: django_rapyd_wiretap-0.1.0.tar.gz
- Upload date:
- Size: 83.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ff75fb0bb8ee29c19c9ec86e0b743a578d9aa05f8cf43c5f9a964462e319a13
|
|
| MD5 |
d75d4b97d384f3cd1e6a81ae3961a62b
|
|
| BLAKE2b-256 |
2f4f00a377d89921d1f77c4f115fd6b5459b2cc38116d1114d78e7626a7dfa2e
|
Provenance
The following attestation bundles were made for django_rapyd_wiretap-0.1.0.tar.gz:
Publisher:
publish.yml on karthicraghupathi/django_rapyd_wiretap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_rapyd_wiretap-0.1.0.tar.gz -
Subject digest:
0ff75fb0bb8ee29c19c9ec86e0b743a578d9aa05f8cf43c5f9a964462e319a13 - Sigstore transparency entry: 1486100671
- Sigstore integration time:
-
Permalink:
karthicraghupathi/django_rapyd_wiretap@73f68f7accca405427120050fe92dbaed35fae8e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/karthicraghupathi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@73f68f7accca405427120050fe92dbaed35fae8e -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_rapyd_wiretap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_rapyd_wiretap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d93258100d83bc940df5c6b4d49c08906f7cde50a4edd6f947f24804e38934e
|
|
| MD5 |
48d6af8230b6ee875b1462f4456854a0
|
|
| BLAKE2b-256 |
da5db23c8370c83c6b5aa3b09b63ac046692da33c0980a2c027e8534a6d18705
|
Provenance
The following attestation bundles were made for django_rapyd_wiretap-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on karthicraghupathi/django_rapyd_wiretap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_rapyd_wiretap-0.1.0-py3-none-any.whl -
Subject digest:
9d93258100d83bc940df5c6b4d49c08906f7cde50a4edd6f947f24804e38934e - Sigstore transparency entry: 1486100700
- Sigstore integration time:
-
Permalink:
karthicraghupathi/django_rapyd_wiretap@73f68f7accca405427120050fe92dbaed35fae8e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/karthicraghupathi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@73f68f7accca405427120050fe92dbaed35fae8e -
Trigger Event:
release
-
Statement type: