Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

dpdpkit-policies

Versioned policy packs for India's Digital Personal Data Protection Act, 2023 and the DPDP Rules, 2025. Every legal number that dpdpkit uses lives here. Examples are the 48-hour pre-erasure warning, the one-year log floor and the 90-day grievance ceiling. None of them are in code.

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.

Install

Installed automatically with pip install dpdpkit. On its own:

pip install dpdpkit-policies

Use

from dpdpkit_policies import load_pack

pack = load_pack("dpdp-rules-2025.v1", overlays=[])
pack["retention"]["erasure_pre_notice_hours"]  # 48
dpdpkit-policies list
dpdpkit-policies validate                 # every shipped pack and overlay
dpdpkit-policies validate my-pack.yaml    # your own file
dpdpkit-policies rule-map --format md     # rule-to-code table for the docs site

Versioning

  • Pack ids (dpdp-rules-2025.v1, .v2…) change when the law or its numbers change. A pack is never edited after release; a new version is added instead.
  • The package uses CalVer (2026.10.0) and is released independently of dpdpkit's code packages, so a rule change ships without a code release.

Rule-change process

  1. Watch official sources: MeitY notifications, the eGazette, the Data Protection Board website.
  2. Open an issue with the rule-change label linking the official text.
  3. Numbers only changed → new pack version + new release of this package. No code release.
  4. New obligation → feature added to dpdpkit-core behind a flag, then enabled by the new pack.
  5. Every CHANGELOG.md entry cites the notification.

Pack format

See src/dpdpkit_policies/packs/dpdp-rules-2025.v1.yaml and the JSON Schema in src/dpdpkit_policies/schema/. Overlays are described in overlays/README.md.

Licence

Apache-2.0.

Metadata

Release files for dpdpkit-policies 2026.11.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dpdpkit-policies 2026.11.0a1
File Size Uploaded Provenance Actions
dpdpkit_policies-2026.11.0a1.tar.gz 20.1 kB With provenance Details for dpdpkit_policies-2026.11.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dpdpkit-policies 2026.11.0a1
File Interpreter ABI Platform Actions
dpdpkit_policies-2026.11.0a1-py3-none-any.whl Python 3 none any Details for dpdpkit_policies-2026.11.0a1-py3-none-any.whl

Total release size: 40.0 kB

Release files / dpdpkit_policies-2026.11.0a1.tar.gz

Download URL dpdpkit_policies-2026.11.0a1.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6cc56ef3cd740d86a305a9325fb610e09ef256478031413d781efc7c0ffe7791
BLAKE2b-256 checksum
How to use checksums
9efb5706bc6ca144fdf291086db06dc9088423cc05c4eef04b0b175920549652
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

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.

Transparency log

Release files / dpdpkit_policies-2026.11.0a1-py3-none-any.whl

Download URL dpdpkit_policies-2026.11.0a1-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
389954480b717665b40b6be0790547b9520b39d8b21fe0420678171f6773a152
BLAKE2b-256 checksum
How to use checksums
70088ba6087d910451ffb780724e2b68bfa8342646f1ce3b44285001bc8b6b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

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.

Transparency log

Security for dpdpkit-policies 2026.11.0a1

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dpdpkit_policies-2026.11.0a1.tar.gz

PyPI Publish Attestation

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.

Transparency log

A note on package security

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page