Skip to main content
Pre-release

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

dpdpkit-spec

The single REST contract for dpdpkit. The FastAPI adapter, the Django adapter, dpdpkit-server and dpdpkit Cloud all expose exactly this API. The conformance suite here decides whether an adapter can be released.

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.

  • openapi.yaml: OpenAPI 3.1, the source of truth. @dpdpkit/client generates its types from it.
  • dpdpkit-conformance: black-box pytest suite (src/dpdpkit_conformance/suite).

Running the conformance suite

pip install "dpdpkit-conformance[asgi] @ git+https://github.com/dpdpkit-dev/dpdpkit-spec@main"

# against a running server
DPDPKIT_BASE_URL=http://localhost:8000/dpdp dpdpkit-conformance

# in-process against an ASGI app (FastAPI, dpdpkit-server)
DPDPKIT_ASGI_APP=app:app DPDPKIT_PREFIX=/dpdp dpdpkit-conformance

What the app under test must do

  1. Publish a notice with at least one consent-based purpose.
  2. Conformance mode: resolve the principal from the X-DPDP-Test-Principal header and the admin role (viewer, handler, admin) from X-DPDP-Test-Role. Enable this only in test configuration.
  3. Register at least one erasure handler (the suite does not trigger erasure, but a production-like setup should).

Any adapter that fails the suite is not released (release-train rule).

Changing the contract

  • Additive changes (new optional field, new endpoint) are minor releases.
  • Removing or renaming anything is a breaking change: deprecate first, then bump the major version (the minor version while dpdpkit is below 1.0).
  • Pull requests that touch openapi.yaml run oasdiff. A breaking change fails the check unless the PR has the breaking-change label and a CHANGELOG entry under "Breaking".
  • Every change updates the conformance suite in the same pull request.

Licence

Apache-2.0.

Metadata

Release files for dpdpkit-conformance 0.1.0a2

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-conformance 0.1.0a2
File Size Uploaded Provenance Actions
dpdpkit_conformance-0.1.0a2.tar.gz 22.6 kB With provenance Details for dpdpkit_conformance-0.1.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dpdpkit-conformance 0.1.0a2
File Interpreter ABI Platform Actions
dpdpkit_conformance-0.1.0a2-py3-none-any.whl Python 3 none any Details for dpdpkit_conformance-0.1.0a2-py3-none-any.whl

Total release size: 43.3 kB

Release files / dpdpkit_conformance-0.1.0a2.tar.gz

Download URL dpdpkit_conformance-0.1.0a2.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a7073c3aeaaa5e58b020d239896359eda1304dfe63571bf8f0654aac27e5d883
BLAKE2b-256 checksum
How to use checksums
df9e2709ff079baea9a50fdc796354107db7f0972c8e5a428498a00cae56c78f
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_conformance-0.1.0a2-py3-none-any.whl

Download URL dpdpkit_conformance-0.1.0a2-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3c9b5d83aeb31882d5990a125813469afe188331df93c1e5457748dc9c39b41
BLAKE2b-256 checksum
How to use checksums
93f283b02ec7a212c461687e2fcbffd9262796412cb0a345974993c632434270
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-conformance 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.

Select from 2 files

Attestation for dpdpkit_conformance-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 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