This release is a pre-release and may not be stable for production use.
Find personal data in your databases and files: Indian PII recognizers (Aadhaar, PAN, GSTIN, UPI and more) and a read-only scanner.
pip install dpdpkit-pii Copy PIP instructions
Personal-data discovery for dpdpkit. It will find personal data in your databases and files and compare it with your dpdpkit registry, reporting counts only.
Disclaimer. dpdpkit is software that helps you implement obligations under India's Digital Personal Data Protection Act, 2023 and the DPDP Rules, 2025. It does not provide legal advice and does not guarantee compliance. Decisions about notices, purposes, retention and incident reporting must be made by you or your counsel.
Alpha. Version 0.1.0a2 is the first working pre-release (pip install --pre dpdpkit-pii). APIs can still change between pre-releases.
Presidio recognizers for India: Aadhaar (with Verhoeff check), PAN, GSTIN, IFSC, UPI, mobile, voter ID, passport, vehicle registration, ABHA.
from presidio_analyzer import AnalyzerEngine, RecognizerRegistry from dpdpkit.pii import india_recognizers registry = RecognizerRegistry() for recognizer in india_recognizers(): registry.add_recognizer(recognizer) results = AnalyzerEngine(registry=registry).analyze(text="PAN ABCPE1234F", language="en") Column-name heuristics for English and Hinglish names (a hint from the name only, with a confidence):
from dpdpkit.pii import classify_column classify_column("aadhaar_no") # category "aadhaar", entity "IN_AADHAAR" classify_column("janm_tithi") # category "dob" Read-only database scanner. It refuses a connection that can write unless force=True, samples at most sample values per column, and reports columns and counts, never values:
from dpdpkit.pii import scan_database scan = scan_database("postgresql://readonly@host/db", sample=500) for f in scan.confident: print(f.qualified_name, f.entities, f.confidence) # e.g. customers.pan {'IN_PAN': 212} 0.95 File scanner for CSV, JSON, Excel and text files in a folder or under an S3 prefix (Excel needs dpdpkit-pii[excel], S3 needs dpdpkit-pii[s3]). It only reads, does not follow symlinks, and reports files, fields and counts, never values:
from dpdpkit.pii import scan_files scan = scan_files("s3://my-bucket/exports/", sample=500, exclude=["*.log"]) for f in scan.confident: print(f.qualified_name, f.entities, f.confidence) # e.g. s3://my-bucket/exports/kyc.csv:pan {'IN_PAN': 212} 0.95 Registry diff and reports. Pass the names you have registered (table.column, schema.table.column or file:field, with * wildcards); unregistered findings are the gaps and are listed first. Reports hold names, entity types and counts only:
from dpdpkit.pii import build_report report = build_report(scan, registry=["customers.pan", "customers.phone", "orders.*"]) print(report.to_markdown()) # or report.to_json(), report.to_html(), report.render("md") Command line (adds dpdpkit scan to the dpdpkit command) and container image:
dpdpkit scan postgresql://readonly@host/db --sample 500 --registry registry.txt --out report.html dpdpkit scan ./exports --format json --fail-on-gaps # exit 2 if unregistered personal data is found docker run --read-only --tmpfs /tmp ghcr.io/dpdpkit-dev/scanner postgresql://readonly@host/db The target is a database URL, a file, a folder or an s3:// prefix. The registry file is a JSON array or one name per line. The format comes from --format, else the --out suffix, else Markdown.
Documentation: https://dpdpkit-dev.github.io/dpdpkit-docs/dev/
Apache-2.0. See LICENSE. Contributions need a DCO sign-off; see CONTRIBUTING.md.
All 2 files in this release have provenance metadata.
data-discovery dpdp india pii presidio privacy
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




