Skip to main content

CLI tool for testing Agent Payments Protocol (AP2) implementations

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ap2test-0.1.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ap2test-0.1.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file ap2test-0.1.2.tar.gz.

File metadata

  • Download URL: ap2test-0.1.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ap2test-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6c3997d24455e761c38417c59217b3487c56901546b1882c80747decfc8c9dae
MD5 19af4a65ca0593d159cadb0db3bc4534
BLAKE2b-256 d06eb3f57f68c56878174f8f53531c2bab3497d44f1fc8d79c8b78c818b8aa40

See more details on using hashes here.

File details

Details for the file ap2test-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ap2test-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ap2test-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c11355dfc995edf4165853a771c4d0190d564746f6c761f581c09510174d722b
MD5 3015aab8e80dbf49cc8d6de1efe70d47
BLAKE2b-256 021a303258afbcf9bf8637984dd265586af30025a0f6077c3aef47fbe2d9d13d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page