Show HN: Django PostgreSQL Anonymizer – prod → safe dev datasets (beta)

github.com

1 points by sanyam-khurana 8 hours ago

I built a Django integration around the PostgreSQL anon extension to create masked/dev datasets quickly.

What it does

`manage.py anon_init` + middleware / context managers / decorators for DB-level masking.

Presets/recipes for common PII (email, name, phone, etc.).

CI examples + example project included (/example_project) for a 2-minute local try.

Quickstart

``` pip install django-postgres-anonymizer==0.1.0b1 # add to INSTALLED_APPS, then: python manage.py migrate python manage.py anon_init ```

(See docs for setup).

Docs: https://django-postgres-anonymizer.readthedocs.io/

GitHub: https://github.com/CuriousLearner/django-postgres-anonymizer

Notes / compatibility:

Requires PostgreSQL 12+ with the anon extension installed & initialized (extension is deployed on the host, then created and initialized in the DB).

Managed cloud services generally don’t support the anonymizer extension; use self-hosted Postgres or Docker for full functionality.

Looking for beta testers & feedback—especially missing recipes, DX rough edges, and performance data on larger datasets.