AP2Test - Agent Payments Protocol Testing CLI
A command-line tool for testing AP2 (Agent Payments Protocol) payment flows.
Overview
AP2Test helps developers test their AI agent payment implementations by simulating the complete mandate flow:
- Intent Mandates - Define agent authorization constraints
- Cart Mandates - Capture specific purchase approvals
- Payment Mandates - Execute cryptographically-signed transactions
Installation
pip install ap2test
Examples
View detailed audit trail
ap2test audit
Check current status
ap2test status
Create a custom intent
ap2test create-intent --amount 1000 --merchant store_xyz --category electronics
Create a custom cart
ap2test create-cart --items "Laptop:899:1,Mouse:49:1" --merchant store_xyz
Execute with crypto payment
ap2test execute-payment --method stablecoin
Export audit as JSON
ap2test audit --format json
Clear all data when done testing
ap2test reset
Metadata
Release files for ap2test 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ap2test-0.1.2.tar.gz | 10.5 kB | Without provenance | Details for ap2test-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ap2test-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ap2test-0.1.2-py3-none-any.whl |
Total release size: 21.4 kB
Release files / ap2test-0.1.2.tar.gz
| Download URL | ap2test-0.1.2.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c3997d24455e761c38417c59217b3487c56901546b1882c80747decfc8c9dae
|
|
BLAKE2b-256 checksum How to use checksums |
d06eb3f57f68c56878174f8f53531c2bab3497d44f1fc8d79c8b78c818b8aa40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / ap2test-0.1.2-py3-none-any.whl
| Download URL | ap2test-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c11355dfc995edf4165853a771c4d0190d564746f6c761f581c09510174d722b
|
|
BLAKE2b-256 checksum How to use checksums |
021a303258afbcf9bf8637984dd265586af30025a0f6077c3aef47fbe2d9d13d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for ap2test 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.