Skip to main content

agent-payment-guard

Python client for the hosted Agent Payment Guard x402 service.

pip install agent-payment-guard
from payment_guard import PaymentGuardClient

guard = PaymentGuardClient(
    "https://base-agent-preflight.bytoken2023.workers.dev",
    paid_transport=paid_transport,  # Your x402-capable transport.
    profile_id="profile-id",
    agent_token="agent-token",
)

decision = guard.evaluate(
    url="https://merchant.example/resource",
    session_id="agent-run-42",
    request_id="request-42",
    tool_id="research-agent",
    purpose="market-data",
)

The SDK uses only Python's standard library and never stores wallet keys.

Metadata

Release files for agent-payment-guard 2.0.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 agent-payment-guard 2.0.0
File Size Uploaded Provenance
agent_payment_guard-2.0.0.tar.gz 3.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-payment-guard 2.0.0
File Interpreter ABI Platform
agent_payment_guard-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / agent_payment_guard-2.0.0.tar.gz

Download URL agent_payment_guard-2.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
817c3d42905b5790abf67bd51a9717fcd43d16010f7edd3adc826c24fc294678
BLAKE2b-256 checksum
How to use checksums
98dd6c5534a41f8dd6f8bc4a178451b8ae03ef7b8962aebf67b09e5b44aac8b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / agent_payment_guard-2.0.0-py3-none-any.whl

Download URL agent_payment_guard-2.0.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d45c7ef0423d8ffea61d2240db42460d347514081cd1d22f0c1f626327cf5d1
BLAKE2b-256 checksum
How to use checksums
f087413336a0d03e87f673c958bb8601393a244232cd8a92f21a520aaf563f9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for agent-payment-guard 2.0.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

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