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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a80f0eb0571b6837dfbfd8445cbbc242c3b06b22e633b30cd48ff8ab52546414 |
|
MD5 | c3ea3d72013ed3595a4ec2fe0ecc5704 |
|
BLAKE2b-256 | 3d389a1a54c9b53ff293144ce4ca52fee5c079286e0ab08c4d2da46ed64bbd7f |