DPDP Engineering Starter Kit (Python) for Indian apps
India's Digital Personal Data Protection Rules, 2025 bring most obligations into force on about 13 May 2027. That's when Rules 3 and 5 to 16 apply, 18 months after the 13 November 2025 gazette. Per the government's press release, penalties go up to Rs 250 crore for weak security safeguards and Rs 200 crore for not reporting a breach. This kit covers the engineering part for small Indian startups and agencies.
Everything is read-only: it never deletes data, never sends messages and never touches production.
What's inside:
- dpdp.py scan: finds personal data in SQL, Prisma, Django, SQLAlchemy and TypeORM/Mongoose models. It spots Aadhaar (checksum-validated), PAN and mobile numbers in seed or test data (masked, never printed) and personal data in logs. Builds the itemised inventory for the Rule 3 notice and flags likely children's data.
- dpdp.py notice: drafts the Rule 3 notice. --check catches missing parts and vague purposes.
- Postgres and SQLite schemas: append-only consent log, notice versions, rights requests with 90-day due dates, breach register with the 72-hour deadline.
- dpdp.py retention: Third Schedule 3-year erasure dates and the 48-hour pre-erasure notice. It never lists anyone for erasure without a valid notice and refuses any log purge that breaks the 1-year minimum.
- dpdp.py breach: the Rule 7 package (immediate Board notice, 72-hour report with the deadline in UTC and IST, user notice) plus a check of what's missing.
- dpdp.py requests: 90-day tracking, plus your "Your data rights" page and the contact block.
- A rule-by-rule checklist, breach runbook, vendor contract question list, an example app and 17 tests. Python 3.9+, standard library only.
Honest limits:
- Not legal advice, and it doesn't make you compliant by itself. Have your notice reviewed.
- Check the corrigendum of 16 December 2025.
- The scanner can miss things and flag false positives.
- Significant Data Fiduciary duties and Consent Manager registration are not covered.
- Not affiliated with MeitY or the Data Protection Board.
MIT licensed. Instant download. By Saggurthi Labs.