Concept: India DPDP guide | API: India DPDP overview
client.dpdp. The sub-client is attached automatically — construct a RailScoreClient and reach for client.dpdp.*. The async client (AsyncRAILClient) exposes the same methods on await client.dpdp.*.
Scan content for Indian PII
Detect Aadhaar (Verhoeff-validated), PAN, UPI, mobile, and more, plus child signals (S.9) and purpose drift (S.4). Choosedetect, mask, or block.
Gate a decision
evaluate returns a deterministic verdict — allow, block, or require_action — for the action you are about to take.
Record events
emit writes 1–50 compliance events and auto-starts any statutory timers they trigger (for example, dsr.received starts the response clock).
Required actions for a workflow step
Sessions
A session threads one data principal’s journey together.create_session requires a purpose — the SDK raises ValueError immediately if it is empty (it will not waste a round trip).
Timers
List regulatory deadline timers, filtered by status, type, or how soon they are due.Evidence (Pro+)
Assemble an audit-grade packet from the session’s recorded trail.System audit
dpdp_audit runs a tiered compliance assessment of a system description, with entity-specific context and penalty-exposure scoring. It wraps the hosted compliance check, so it is hosted-only.
Error handling
The DPDP methods raise the standard SDK errors (AuthenticationError, RateLimitError, InsufficientTierError for evidence below Pro) plus DPDP-specific ones.
Related
DPDP API reference
Every endpoint, credit costs, and the response envelope.
Configuration
Inspect your application’s policy, plan capabilities, and dimensions.