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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-maskpostgresdata-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 205452709f6d88502162617ce89f5e2fb1749b202059d313961940897047b4d1 |
|
MD5 | 386b1baf515fd3cf14f7145f081c6d74 |
|
BLAKE2b-256 | c626da597e1c29da5ca5f6e7463da01a27dc9e3f25ebf5ba7acce4ca302ecdb4 |