{ "info": { "author": "Developer Society", "author_email": "hello@dev.ngo", "bugtrack_url": null, "classifiers": [], "description": "Django Mask Postgres Data\n=========================\n\nAdds a management command to your Django project which allows you to create a (sort of) pg_dump\nof your data with sensitive data masked.\n\nInstallation\n------------\n\nInstall with pip:\n\n`pip install django-maskpostgresdata`\n\nAnd add `maskpostgresdata` to your `INSTALLED_APPS`:\n\n```\nINSTALLED_APPS = [\n ...\n 'maskpostgresdata',\n ...\n]\n```\n\nUsage\n-----\n\nBy default, `django-maskpostgresdata` will replace the `password` column for each row in the Django `User` model with \"password\". Just run `manage.py dump_masked_data` and you'll get a pg_dump with the password field changed to \"password\" for all users.\n\nThere are 2 ways to customise the behaviour of `django-maskpostgresdata`.\n\nTo override individual fields of a model with a given value, add a dictionary called `MASKER_FIELDS` to your settings using the following format:\n\n```\nMASKER_FIELDS = {\n \"{ APP_NAME }\": {\"{ MODEL_NAME }\": {\"{ FIELD_NAME }\": { VALUE },}},\n}\n```\n\nAlternatively, you can define exactly how the data is updated by subclassing `BasePostgresDataMaskingCommand` in a management command of your own. For example:\n\n```\nfrom django.contrib.auth.hashers import make_password\n\nfrom maskpostgresdata import BasePostgresDataMaskingCommand\n\n\nclass Command(BasePostgresDataMaskingCommand):\n\n def update_auth_user(self, queryset):\n queryset.update(password=make_password(\"a_different_password\"))\n\n```\n\nJust create a method called `update_{ db_table_name }` taking a `queryset` as the parameter. You can then perform `update` operations on this queryset. `{ db_table_name }` is of the format `{app_label}_{model_name}` by default, but could technically be different.\n\nYou can then run `manage.py dump_masked_data` and it will dump your data to `stdout`.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/developersociety/django-maskpostgresdata", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-maskpostgresdata", "package_url": "https://pypi.org/project/django-maskpostgresdata/", "platform": "", "project_url": "https://pypi.org/project/django-maskpostgresdata/", "project_urls": { "Homepage": "https://github.com/developersociety/django-maskpostgresdata" }, "release_url": "https://pypi.org/project/django-maskpostgresdata/0.1.9/", "requires_dist": [ "django (>=1.8)", "psycopg2" ], "requires_python": "", "summary": "Creates a pg_dumpish output which masks data without saving changes to the source database.", "version": "0.1.9" }, "last_serial": 5927342, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "dfaddab4809aed65cd3728be07e1134d", "sha256": "6e1c24d7d4d4adbd0b1ed3d0e7ee6926fc9e6fd7d710a5c160c42d3dc63bc4ea" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.tar.gz", "has_sig": false, "md5_digest": "dfaddab4809aed65cd3728be07e1134d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1307, "upload_time": "2019-08-02T13:16:56", "url": "https://files.pythonhosted.org/packages/6e/3d/58a3234682dcc19081a23ee6cea21e6be86f2ba4815761444a150329943b/django-maskpostgresdata-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7b77cd2b2f709a38cf5078d4c74a1cb5", "sha256": "4739a9fd0b0e28081c700f49da50bbc49f702bfcd2416dbfbcf8bf4d25c87ef7" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7b77cd2b2f709a38cf5078d4c74a1cb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1401, "upload_time": "2019-08-02T13:32:21", "url": "https://files.pythonhosted.org/packages/d9/25/efe676e03728bf05f98f27071fe3eb30222af0730a990532d836fa06d661/django-maskpostgresdata-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "086e2365ca5022789648ceec0853d30e", "sha256": "a3711d8c59a9096de2d4a4e4261c5d58213622d76fceb74c61488211decc2057" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.2.tar.gz", "has_sig": false, "md5_digest": "086e2365ca5022789648ceec0853d30e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1476, "upload_time": "2019-08-02T13:51:03", "url": "https://files.pythonhosted.org/packages/63/c1/fe050cb5d4931864c07256dd1f14fb14987598c1c55db8f58270ab3099f7/django-maskpostgresdata-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c8e8848f809c88053dda62dec063ecdf", "sha256": "be69839c30172ae935f12df38593ffb07557ec0f07ecbca8d8b7f87312b62ffa" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c8e8848f809c88053dda62dec063ecdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1517, "upload_time": "2019-08-02T14:04:58", "url": "https://files.pythonhosted.org/packages/de/d5/f61aefee22e8cc5b25dfc607fcbbeafb28984d9990173a1c62655bcb6975/django-maskpostgresdata-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "386b1baf515fd3cf14f7145f081c6d74", "sha256": "205452709f6d88502162617ce89f5e2fb1749b202059d313961940897047b4d1" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.4.tar.gz", "has_sig": false, "md5_digest": "386b1baf515fd3cf14f7145f081c6d74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1651, "upload_time": "2019-08-02T14:10:53", "url": "https://files.pythonhosted.org/packages/c6/26/da597e1c29da5ca5f6e7463da01a27dc9e3f25ebf5ba7acce4ca302ecdb4/django-maskpostgresdata-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "c3ea3d72013ed3595a4ec2fe0ecc5704", "sha256": "a80f0eb0571b6837dfbfd8445cbbc242c3b06b22e633b30cd48ff8ab52546414" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.5.tar.gz", "has_sig": false, "md5_digest": "c3ea3d72013ed3595a4ec2fe0ecc5704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1647, "upload_time": "2019-08-02T14:12:56", "url": "https://files.pythonhosted.org/packages/3d/38/9a1a54c9b53ff293144ce4ca52fee5c079286e0ab08c4d2da46ed64bbd7f/django-maskpostgresdata-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "58c82d372c525bfb3e9abb09db821830", "sha256": "8fdaec504580673a21868d91d7ab7999f1be22950f514fa3625fdfe3da7e53fa" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.6.tar.gz", "has_sig": false, "md5_digest": "58c82d372c525bfb3e9abb09db821830", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3319, "upload_time": "2019-08-29T14:16:32", "url": "https://files.pythonhosted.org/packages/c5/c4/bc02c55fb550a076024ebc586c796f91d8f78abb1967df1bad6c32fcaf20/django-maskpostgresdata-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "66323672c2b4b5235fef82bf9603735f", "sha256": "9077b50849382856d1c83e9431c7b993b0705d0fd2f13a9d3c21be407e978de4" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.7.tar.gz", "has_sig": false, "md5_digest": "66323672c2b4b5235fef82bf9603735f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3335, "upload_time": "2019-08-30T13:13:10", "url": "https://files.pythonhosted.org/packages/81/ed/23ea715ed50dd6d0ca714f6f842de51d337a700df7cfefe240c96d35c966/django-maskpostgresdata-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "aa511451e0b2251555f0dfa2b741596b", "sha256": "2b0417491baad5ce8f66654c328804241048c3c00c188c1cfe2669d5e65fc3de" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.8.tar.gz", "has_sig": false, "md5_digest": "aa511451e0b2251555f0dfa2b741596b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3388, "upload_time": "2019-08-30T14:43:05", "url": "https://files.pythonhosted.org/packages/a9/5e/12f25fe95330fed17e97ccb1832959fc978d258a87547c6bfaff51c8f4e7/django-maskpostgresdata-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "d29c671fd0b33d4c1b5d90496e71d2a8", "sha256": "420dfea5129f031f8562112684e631006bdd8aba8108986d64371ee6db980400" }, "downloads": -1, "filename": "django_maskpostgresdata-0.1.9-py3-none-any.whl", "has_sig": false, "md5_digest": "d29c671fd0b33d4c1b5d90496e71d2a8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4508, "upload_time": "2019-10-04T08:51:27", "url": "https://files.pythonhosted.org/packages/0c/cc/234fe54392b900895e0e1c4ec7bc4909b606fd036ed7d09fc02f95a8c2e0/django_maskpostgresdata-0.1.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f807b547741adce07f4fb674cff0609", "sha256": "5046098d07ae68a042b5813e02594f31aa0b52e3065f75d5a030bae5f8bf40d3" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.9.tar.gz", "has_sig": false, "md5_digest": "5f807b547741adce07f4fb674cff0609", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3635, "upload_time": "2019-10-04T08:51:28", "url": "https://files.pythonhosted.org/packages/ff/87/fae171891fbd277571272904207fd0b98294070b9db48c0905cfe33a04f9/django-maskpostgresdata-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d29c671fd0b33d4c1b5d90496e71d2a8", "sha256": "420dfea5129f031f8562112684e631006bdd8aba8108986d64371ee6db980400" }, "downloads": -1, "filename": "django_maskpostgresdata-0.1.9-py3-none-any.whl", "has_sig": false, "md5_digest": "d29c671fd0b33d4c1b5d90496e71d2a8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4508, "upload_time": "2019-10-04T08:51:27", "url": "https://files.pythonhosted.org/packages/0c/cc/234fe54392b900895e0e1c4ec7bc4909b606fd036ed7d09fc02f95a8c2e0/django_maskpostgresdata-0.1.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f807b547741adce07f4fb674cff0609", "sha256": "5046098d07ae68a042b5813e02594f31aa0b52e3065f75d5a030bae5f8bf40d3" }, "downloads": -1, "filename": "django-maskpostgresdata-0.1.9.tar.gz", "has_sig": false, "md5_digest": "5f807b547741adce07f4fb674cff0609", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3635, "upload_time": "2019-10-04T08:51:28", "url": "https://files.pythonhosted.org/packages/ff/87/fae171891fbd277571272904207fd0b98294070b9db48c0905cfe33a04f9/django-maskpostgresdata-0.1.9.tar.gz" } ] }