Skip to main content

Creates a pg_dumpish output which masks data without saving changes to the source database.

Project description

Django Mask Postgres Data

Adds a management command to your Django project which allows you to create a (sort of) pg_dump of your data, with sepcific fields masked by given values.

Installation

Install with pip:

pip install django-maskpostgresdata

And add maskpostgresdata to your INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    maskpostgresdata,
    ...
]

Usage

To configure, add a dictionary called MASKER_FIELDS to your settings using the following format::

MASKER_FIELDS = {
    "{ APP_NAME }": {"{ MODEL_NAME }": {"{ FIELD_NAME }": { VALUE},}},
}

You can then run manage.py dump_masked_data and it will dump your data to stdout.

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-maskpostgresdata-0.1.4.tar.gz (1.7 kB view hashes)

Uploaded Source

Supported by

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