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.1.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.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ap2test-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f67a5b685eea4b1a7e7609b2221c0bade9f10469b8f0183e78ed2c9d6c90ee7a
MD5 1fabe06c50385cfafa541a94967db731
BLAKE2b-256 b7bf38a9681686c0a590a80ea8df410e08fbf57652da71065468ff4e5c5408b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ap2test-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 906821d638c98659a611b6f90ef19a5cc904962aa32a11550f900f37097f0738
MD5 b1b847ee51fe0c9c1502478eb9b249ba
BLAKE2b-256 f8d7569740c5b9c0e0093702154af145b4a741e074a2dd61eb8a650807bc3bf7

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