Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

yanez-agent-authorization (Python)

Async client for requesting verifiable human approval through Yanez, and a verifier for the signed receipts. Import package: yanez_authz.

A receipt carries two signatures — Yanez's, and the approver's own over the decision they made — and verify checks both.

pip install --pre yanez-agent-authorization   # pre-release; from a checkout: pip install -e packages/python
from yanez_authz import AuthorizationClient, ReceiptVerifier

async with AuthorizationClient(base_url, agent_api_key) as client:
    pending = await client.request_authorization(terms={...})
    result = await client.wait_for_authorization(pending.request_id, 900)

receipt = ReceiptVerifier(base_url, expected_issuer).authorize_action(
    result.artifact, expected_terms, max_age_seconds=900,
    consume=True, consumer_token=job.token,  # yours, durable, reused on every retry
    expected_sub=account_yid,                # the YID your records tie to the account
    min_assurance_tier="high")               # your floor for the value at risk

receipt.assurance_tier   # the tier the approver's scan reached, from the bytes they signed
receipt.user_proof       # the full verified proof and decoded envelope

Already have a JWT library? Verify the receipt with it, then call the standalone proof helper for the half a JWT library cannot do:

from yanez_authz import verify_user_proof
proof = verify_user_proof(claims, expected_issuer=expected_issuer)

terms has a required shape that the server enforces with a 422; every field is documented on the Terms page.

wait_for_authorization raises the builtin TimeoutError when the local deadline passes; rejection and expiry are returned as values. expected_issuer is the issuer string your Yanez operator publishes for the deployment.

consume=True requires a consumer_token. On ReservationHeldError your own earlier attempt already won and lost its response: reconcile downstream with your original idempotency key rather than requesting a new approval.

Verifying the approver's signature, field by field: https://yanez-compliance.github.io/yanez-agent-authorization/user-signed-approvals/

Docs and the full integration model: https://github.com/yanez-compliance/yanez-agent-authorization

Metadata

Release files for yanez-agent-authorization 0.1.0b5

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

Source distribution (sdist)

Source distribution for yanez-agent-authorization 0.1.0b5
File Size Uploaded Provenance Actions
yanez_agent_authorization-0.1.0b5.tar.gz 25.6 kB With provenance Details for yanez_agent_authorization-0.1.0b5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yanez-agent-authorization 0.1.0b5
File Interpreter ABI Platform Actions
yanez_agent_authorization-0.1.0b5-py3-none-any.whl Python 3 none any Details for yanez_agent_authorization-0.1.0b5-py3-none-any.whl

Total release size: 46.9 kB

Release files / yanez_agent_authorization-0.1.0b5.tar.gz

Download URL yanez_agent_authorization-0.1.0b5.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0a940ab9e1327b35f5e31d6f911ddbf2eac66c8b3f406dc5b1815f02cc019d75
BLAKE2b-256 checksum
How to use checksums
747235c8ed59f19404ad081caac213b621223039bdc3503e70ac7a34486788ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 15, 2026.

Transparency log

Release files / yanez_agent_authorization-0.1.0b5-py3-none-any.whl

Download URL yanez_agent_authorization-0.1.0b5-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f25eb036f017730bcb654a2a62e1cd67546c3585a9aca3a91c40b4ccab6d928
BLAKE2b-256 checksum
How to use checksums
205e29460ac5e836093e65b1a7f1db2d6cbf3931f4b11816da3a7e522886ce59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 15, 2026.

Transparency log

Security for yanez-agent-authorization 0.1.0b5

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for yanez_agent_authorization-0.1.0b5.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 Sep 15, 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