Skip to main content

django-data-sniffer

django-data-sniffer provides a set of tools to inspect the data in your service for misconfigurations

Features

  • Configurable warning/alert queries on any database table in your django app
  • A view to see all misconfigured objects in your table
  • Ability to modify your queries via an externally hosted manifest file so that adding a new health check doesn't require a deployment

Coming Soon

  • Filters & grouping
  • Search
  • Pagination
  • Get manifest file from util method instead of URL
  • JSON API response
  • Notifications

Setup

Installation

pip install django_data_sniffer

Add to settings.py

INSTALLED_APPS = (
  ...
  'data_sniffer
  ...
)

DATA_SNIFFER_ENABLED = True
DATA_SNIFFER_MANIFEST_FILE = 'https://path/to/your/manifest/file.json'  # noqa

Configuring the manifest file

Here's an example manifest file

{
    "clients": {
        "name": "Active clients healthcheck",
        "model": "yourapp.Client",
        "queryset": {
            "filters": {
                "status": "active"
            },
            "excludes": null,
            "ordering": null,
            "display_field": "name",
            "extra_display_fields": ["id", "membership_type"]
        },
        "alerts": [
            {
                "level": "WARNING",
                "name": "Missing billing",
                "queryset": {
                    "filters": {
                        "billing_configured": false
                    }
                },
                "message": "Client does not have billing set up"
            },
            {
                "level": "ERROR",
                "name": "Missing billing and getting premium features",
                "queryset": {
                    "filters": {
                        "billing_configured": false,
                        "premium_features_enabled": true
                    },
                    "excludes": {
                        "is_demo": true
                    }
                },
                "message": "Client has invalid feature set"
            }
        ]
    }
}

Release files for django-data-sniffer 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-data-sniffer 0.4.2
File Size Uploaded
django-data-sniffer-0.4.2.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-data-sniffer 0.4.2
File Interpreter ABI Platform
django_data_sniffer-0.4.2-py2-none-any.whl Python 2 none any Details

Total release size: 18.1 kB

Release files / django-data-sniffer-0.4.2.tar.gz

Download URL django-data-sniffer-0.4.2.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
60aa985754adae05b87c7b2c38e6b1965f0a84761523ba6d7ae9ee643fb0771f
BLAKE2b-256 checksum
How to use checksums
2f6b618b1ffdbae786fc50a7e15a38358634e7a0532f0eeeb4df69bd6eba349e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.15

Release files / django_data_sniffer-0.4.2-py2-none-any.whl

Download URL django_data_sniffer-0.4.2-py2-none-any.whl
Size 9.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
49e8eb11f835d007ff7638e778a9d85c791f6a8005adbf710f87aa91264fea70
BLAKE2b-256 checksum
How to use checksums
26b929ca5b529152ce4da839d9e7ddb42b858315c07a07f34d521f66ca13b075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page