This release is a pre-release and may not be stable for production use.
dpdpkit-django
Django app for dpdpkit. It will add consent, versioned notices, rights requests and retention to your Django project, with tables in your own database.
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.
Status
Alpha. Version 0.1.0a2 is the first working pre-release (pip install --pre dpdpkit-django). APIs can still
change between pre-releases.
It includes the dpdpkit.django app with models, migrations and DjangoRepository, an
implementation of the dpdpkit Repository on the Django ORM (Postgres, MySQL, SQLite), and the dpdpkit REST
contract as URLs and views (include("dpdpkit.django.urls"); a DRF viewset when rest_framework is installed,
plain JSON views otherwise), configured through settings.DPDPKIT, and consent checks for views:
@requires_consent("marketing") for function views and RequiresConsentMixin (consent_purposes = ("marketing",))
for class-based views. With django.contrib.admin installed you also get a read-only compliance back-office: a
request queue with SLA countdowns, consent and audit ledger viewers, a retention monitor and a legal-hold list.
Scheduled work runs from cron with the management commands dpdp_run_retention, dpdp_verify_ledger (exits
non-zero when a ledger chain is broken) and dpdp_export (--principal, --evidence-pack, --root-file), or from
Celery beat with the tasks in dpdpkit.django.tasks (pip install "dpdpkit-django[celery]"). For app-specific hooks
there are the signals consent_withdrawn, erasure_due and request_opened (dpdpkit.django.signals), and for
server-rendered sites the template tags {% dpdp_notice %} and {% dpdp_preferences %} ({% load dpdpkit %}).
A runnable ed-tech demo with a parent/guardian consent flow for child accounts is in
examples/django-school.
Documentation: https://dpdpkit-dev.github.io/dpdpkit-docs/dev/
License
Apache-2.0. See LICENSE. Contributions need a DCO sign-off; see CONTRIBUTING.md.
Metadata
Release files for dpdpkit-django 0.1.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dpdpkit_django-0.1.0a2.tar.gz | 50.3 kB | With provenance | Details for dpdpkit_django-0.1.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dpdpkit_django-0.1.0a2-py3-none-any.whl | Python 3 | none | any | Details for dpdpkit_django-0.1.0a2-py3-none-any.whl |
Total release size: 87.5 kB
Release files / dpdpkit_django-0.1.0a2.tar.gz
| Download URL | dpdpkit_django-0.1.0a2.tar.gz |
|---|---|
| Size | 50.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0f102a0ad283080151e56e5b288f0890c763cd1b5a25141891885375d0331bd
|
|
BLAKE2b-256 checksum How to use checksums |
3f74abfc6bda598a28c1161d3b6ea1c7e7b385f4e5d0e2c8b0e967984484e3d4
|
| 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 logRelease files / dpdpkit_django-0.1.0a2-py3-none-any.whl
| Download URL | dpdpkit_django-0.1.0a2-py3-none-any.whl |
|---|---|
| Size | 37.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f729ca9d5299e8e75ae3363993b411cc5b6d26ab81b223b32748662b99686727
|
|
BLAKE2b-256 checksum How to use checksums |
b6950e2ef0d8999339cf2a6beb1710152e17c555e09fcaa3b79d3255fe649d23
|
| 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 logSecurity for dpdpkit-django 0.1.0a2
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.
Attestation for dpdpkit_django-0.1.0a2.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 logA 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.