Python client for Agent Payment Guard
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_payment_guard-2.0.0.tar.gz.
File metadata
- Download URL: agent_payment_guard-2.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
817c3d42905b5790abf67bd51a9717fcd43d16010f7edd3adc826c24fc294678
|
|
| MD5 |
1854fec06922c171d9a8ef4851bc5b8b
|
|
| BLAKE2b-256 |
98dd6c5534a41f8dd6f8bc4a178451b8ae03ef7b8962aebf67b09e5b44aac8b5
|
File details
Details for the file agent_payment_guard-2.0.0-py3-none-any.whl.
File metadata
- Download URL: agent_payment_guard-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d45c7ef0423d8ffea61d2240db42460d347514081cd1d22f0c1f626327cf5d1
|
|
| MD5 |
84bf4ff7667ff96dc5b47af45ff31c9e
|
|
| BLAKE2b-256 |
f087413336a0d03e87f673c958bb8601393a244232cd8a92f21a520aaf563f9c
|