Skip to main content

zanii-oversight-sdk

Python client for a supervised firm's own systems working with Zanii Oversight: hear Oversight webhooks and answer evidence requests without a person typing. Python twin of @zanii/oversight-sdk (checked against the same vectors). Requests are refused unless signed by a pinned regulator key; answers are signed by the firm's appointed officer key (raw key or a remote signer). Standard library HTTP, backs off on 429/503, pages through lists.

pip install zanii-oversight-sdk
from zanii_oversight import OversightClient
oversight = OversightClient("https://oversight.regulator.example", token, regulator_dids=["did:key:z..."])
receive = oversight.webhook_receiver(secret, {"request.issued": lambda e: oversight.answer_request(e["ref"], decide, officer_key)})

Investigations: the regulator sends signed hold orders (hold.placed). The firm's system applies them in its own Blackbox with its own admin key, sends the investigation export, and removes the hold once the regulator's signed release arrives (hold.released). Orders and releases are refused unless signed by a trusted key.

box = {"url": "https://blackbox.internal", "admin_key": blackbox_admin_key}
oversight.apply_hold(hold_id, box)                    # same in TypeScript: applyHold
oversight.send_investigation_evidence(hold_id, box)   # sendInvestigationEvidence
oversight.apply_release(hold_id, box)                 # applyRelease

Before an agent acts, check_action(feed=..., regulator_dids=..., agent=..., target=...) checks the signed status feed (suspensions, kill switches) and the published rules.

Requires Python 3.10+ and zanii. License: Apache-2.0.

Metadata

Release files for zanii-oversight-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zanii-oversight-sdk 0.1.0
File Size Uploaded Provenance Actions
zanii_oversight_sdk-0.1.0.tar.gz 23.0 kB Without provenance Details for zanii_oversight_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zanii-oversight-sdk 0.1.0
File Interpreter ABI Platform Actions
zanii_oversight_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for zanii_oversight_sdk-0.1.0-py3-none-any.whl

Total release size: 45.5 kB

Release files / zanii_oversight_sdk-0.1.0.tar.gz

Download URL zanii_oversight_sdk-0.1.0.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e59bd9a290ab6e5a9e773f5ae93a8f0d6b90842c45ef415dc47077145150189a
BLAKE2b-256 checksum
How to use checksums
0845173993fd028ad22c1189e955c69bf25fa5b04342b5b03081e4fe75ef1a57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / zanii_oversight_sdk-0.1.0-py3-none-any.whl

Download URL zanii_oversight_sdk-0.1.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ffc60bf05af79a8249154e91234c5c5dcbdbce0697197430b33549fe755400a
BLAKE2b-256 checksum
How to use checksums
3096e6d91b9a0f603a6b4e4220bf403301d8208c85ddf2f4fd34a4ffb6ae2d15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for zanii-oversight-sdk 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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