Concept: India DPDP guide | API: India DPDP overview
client.dpdp पर एक typed method के रूप में उपलब्ध है। Sub-client automatically attach होता है — एक RailScoreClient construct करें और client.dpdp.* के लिए reach करें। Async client (AsyncRAILClient) await client.dpdp.* पर same methods को expose करता है।
Indian PII के लिए content को scan करें
Aadhaar (Verhoeff-validated), PAN, UPI, mobile, और अन्य को detect करें, plus child signals (S.9) और purpose drift (S.4)।detect, mask, या block choose करें।
एक decision को gate करें
evaluate एक deterministic verdict return करता है — allow, block, या require_action — action के लिए जो आप लेने वाले हैं।
Events को record करें
emit 1–50 compliance events को write करता है और किसी भी statutory timers को auto-start करता है जो वह trigger करते हैं (उदाहरण के लिए, dsr.received response clock को start करता है)।
एक workflow step के लिए required actions
Sessions
एक session एक data principal की journey को thread करता है।create_session को एक purpose require है — SDK अगर यह empty है तो immediately एक ValueError raise करता है (यह एक round trip को waste नहीं करेगा)।
Timers
Regulatory deadline timers को list करें, status, type, या कितने जल्दी वह due हैं के आधार पर filter करें।Evidence (Pro+)
Session के recorded trail से एक audit-grade packet को assemble करें।System audit
dpdp_audit एक system description की एक tiered compliance assessment को run करता है, entity-specific context और penalty-exposure scoring के साथ। यह hosted compliance check को wrap करता है, तो यह hosted-only है।
Error handling
DPDP methods standard SDK errors को raise करते हैं (AuthenticationError, RateLimitError, InsufficientTierError for evidence जो Pro से नीचे है) plus DPDP-specific ones।
Related
DPDP API reference
हर endpoint, credit costs, और response envelope।
Configuration
अपने application के policy, plan capabilities, और dimensions को inspect करें।