Skip to main content

A Django application that logs requests and responses to your project for auditing or troubleshooting purposes.

Project description

Django Rapyd Wiretap

Tests PyPI version Python versions Django versions License

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

  1. Add wiretap to INSTALLED_APPS:

    ```python INSTALLED_APPS = [ ... "wiretap", ] ```

  2. Add the middleware to MIDDLEWARE:

    ```python MIDDLEWARE = [ ... "wiretap.middleware.WiretapMiddleware", ] ```

  3. 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

django_rapyd_wiretap-0.1.0.tar.gz (83.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_rapyd_wiretap-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

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

Hashes for django_rapyd_wiretap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0ff75fb0bb8ee29c19c9ec86e0b743a578d9aa05f8cf43c5f9a964462e319a13
MD5 d75d4b97d384f3cd1e6a81ae3961a62b
BLAKE2b-256 2f4f00a377d89921d1f77c4f115fd6b5459b2cc38116d1114d78e7626a7dfa2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_rapyd_wiretap-0.1.0.tar.gz:

Publisher: publish.yml on karthicraghupathi/django_rapyd_wiretap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_rapyd_wiretap-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_rapyd_wiretap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d93258100d83bc940df5c6b4d49c08906f7cde50a4edd6f947f24804e38934e
MD5 48d6af8230b6ee875b1462f4456854a0
BLAKE2b-256 da5db23c8370c83c6b5aa3b09b63ac046692da33c0980a2c027e8534a6d18705

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page