Skip to main content

Revvyn SDK

Python client for the Revvyn Governance API. Send a payment intent, receive an Ed25519-signed verdict (ALLOW / BLOCK / ESCALATE), verify it offline, and report the outcome back. Revvyn governs the decision; you settle on your own rail.

This SDK is licensed under the MIT License. The Revvyn service it connects to is proprietary and is not covered by this licence.

Install

pip install revvyn-sdk

Offline verdict verification needs cryptography; install it with the extra:

pip install "revvyn-sdk[verify]"

You do not need this package to verify a verdict — two widely used libraries are enough: pip install cryptography httpx. The integration guide shows the few lines of code.

Quick start

import httpx
from revvyn_sdk import RevvynClient, verify_verdict

client = RevvynClient(api_key="rvn_live_...")

# Governance-only: returns an Ed25519-signed verdict. Revvyn governs; you settle on your own rail.
signed = client.evaluate(amount=4500, currency="USD", agent_id="agt_your_agent")

jwks = httpx.get("https://api.revvyn.com/.well-known/jwks.json").json()
if verify_verdict(signed, jwks) == "ALLOW":
    ...  # execute on your own rail, then report the real outcome with client.observe(...)

evaluate() sends a reference number (Idempotency-Key) with every call and reuses it when it retries, so a retry never creates a second decision.

What it does

  • Typed responses (dataclasses)
  • Automatic retry with exponential backoff
  • Rate-limit tracking (client.last_rate_limit)
  • Error hierarchy: AuthenticationError, NotFoundError, RateLimitError, ValidationError
  • Offline verdict verification (verify_verdict) and inbound-webhook HMAC verification (verify_webhook)
  • Context-manager support (with RevvynClient(...) as client:)

Metadata

Release files for revvyn-sdk 0.4.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 revvyn-sdk 0.4.0
File Size Uploaded Provenance Actions
revvyn_sdk-0.4.0.tar.gz 15.8 kB With provenance Details for revvyn_sdk-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for revvyn-sdk 0.4.0
File Interpreter ABI Platform Actions
revvyn_sdk-0.4.0-py3-none-any.whl Python 3 none any Details for revvyn_sdk-0.4.0-py3-none-any.whl

Total release size: 32.4 kB

Release files / revvyn_sdk-0.4.0.tar.gz

Download URL revvyn_sdk-0.4.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
348faac4403c1f4011497bf5afa2d0308f553b4be06dc633f7613b4ebac6189e
BLAKE2b-256 checksum
How to use checksums
4902fd8b2b80d00ff56926122806848abec163c24437fa6056a4118a7c972978
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 1, 2026.

Transparency log

Release files / revvyn_sdk-0.4.0-py3-none-any.whl

Download URL revvyn_sdk-0.4.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e346767b6768ac2d8f9d4410346f2cd614269b86d120d8056f419a87f0b5c6b
BLAKE2b-256 checksum
How to use checksums
de50e125b06c1b4341fe799ebe76b24b818c90511405c0fe68ae59598da7d905
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 1, 2026.

Transparency log

Security for revvyn-sdk 0.4.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for revvyn_sdk-0.4.0.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 1, 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