Skip to main content

tessera-verify (Python SDK)

Broker ephemeral, intent-validated credentials for agent tool calls.

pip install tessera-verify
from tessera_verify import create_client, wrap, TesseraConfig, hash_result

client = create_client(TesseraConfig(
    endpoint="http://localhost:8787",
    api_key="tsk_demo_local",
    agent_id="billing-agent",
    user_id="user_42",
))

def charge(args, credential):
    # Bind the ephemeral credential to your provider client for this call only.
    return stripe.charges.create(**args, api_key=credential.material["token"])

charge_refund = wrap(client, "stripe.charges.create", "refund an order", charge)
charge_refund({"amount": 100, "currency": "usd"})

The wrapper authorizes, runs your callback with the ephemeral credential, and records the outcome. hash_result produces the canonical Keccak-256 result hash used by the TypeScript SDK. Raise from the callback and the SDK records a failure outcome before re-raising.

For broker-held grants, use wrap_proxy so the broker (not the agent) records the observed outcome:

from tessera_verify import ProxyRequest, wrap_proxy

refund = wrap_proxy(
    client,
    "stripe.refunds.create",
    "refund a test charge",
    ProxyRequest(
        grant_id="ignored-until-authorize",
        args_hash="ignored-until-authorize",
        method="POST",
        path="/v1/refunds",
        body="charge=ch_test&amount=50",
    ),
)
refund({"charge": "ch_test", "amount": 50})

If an agent key uses per-call delegation, set authority_token in TesseraConfig or pass it to wrap(..., authority_token=...) / wrap_proxy(..., authority_token=...) with a short-lived value from POST /v1/authority-tokens. Owner-bound keys are minted automatically by the control plane.

The client also exposes proxy, revoke, verify_receipt, verify_chain, anchor, submit_anchor, and propose_policy. See docs/publishing.md for the tessera-verify PyPI release flow.

Metadata

Release files for tessera-verify 0.1.2

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

Source distribution (sdist)

Source distribution for tessera-verify 0.1.2
File Size Uploaded Provenance Actions
tessera_verify-0.1.2.tar.gz 8.4 kB Without provenance Details for tessera_verify-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tessera-verify 0.1.2
File Interpreter ABI Platform Actions
tessera_verify-0.1.2-py3-none-any.whl Python 3 none any Details for tessera_verify-0.1.2-py3-none-any.whl

Total release size: 17.1 kB

Release files / tessera_verify-0.1.2.tar.gz

Download URL tessera_verify-0.1.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4f42e8b42b78b1558d1f36bac9f30588cf986dcc1866e92b341eee327835f677
BLAKE2b-256 checksum
How to use checksums
18b6bc8fa4b34873e02fe17b589c5faaa8009c2a41512a6a53ef662385897dea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / tessera_verify-0.1.2-py3-none-any.whl

Download URL tessera_verify-0.1.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d85c1cb7e5c92ec91d3142aeece82eb94f0b1a98d86e65e5e90056534c6e87a
BLAKE2b-256 checksum
How to use checksums
5c320e5f0ca13abaa8dbde0ce977872353a651b081983f2ee952fdc89171e279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for tessera-verify 0.1.2

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.2 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