Python
यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।
pip install "trustysweep[receipts]"from trustysweep import TrustySweep, AsyncTrustySweep, SweepError, webhooks, receipts
sweep = TrustySweep("sk_test_...")for s in sweep.sources.list({"connection_id": "cxn_..."}): print(s["display_name"])result = sweep.sweep({"intent": "sweep", "connection_id": "cxn_...", "source_ids": ["src_..."], "selection": {"policy": True}})
async with AsyncTrustySweep() as a: usage = await a.usage.get()- Same resource namespaces as the TypeScript SDK,
snake_casemethods. - Pagination: iterate the returned page object;
.data,.next_cursor,.all(). - Pollers:
executions.wait_for(id),jobs.wait_for(id). webhooks.construct_event(raw_body, header, secret);receipts.verify(receipt, jwks)(Ed25519 viacryptography).- Models: TypedDicts in
trustysweep._types, generated from the JSON Schemas. scripts/check_coverage.pyis the drift guard.