Skip to main content

voidly-pay-pydantic-ai 0.2.0

Pydantic AI tools for the voidly-pay 4.x marketplace API. This release replaces the retired credit API. It is not a drop-in update for 0.1.x.

from voidly_pay import VoidlyPay
from voidly_pay_pydantic_ai import voidly_pay_tools

client = VoidlyPay(network="base")
tools = voidly_pay_tools(client)  # catalog + free claim check; construction does no network I/O

Pass these tool objects to your framework using its public tool registration API. Calling voidly_catalog reads one public page. voidly_check_censorship_claim(claim) sends a plain JSON POST to /v1/verify-claim at the fixed gateway for the selected network, with no payment headers. It needs no wallet. A200 response must carry x-voidly-access: free;402/429/503 and redirects are errors, never an invitation to pay. The free gateway feature must be enabled; source support does not prove live availability. No Voidly API key or signer is needed for catalog search. Your chosen model provider may require its own credentials.

Optional buying

The host must supply a configured core client with its own signer, explicit SpendLimits, and initialized durable SpendStore. This package creates no wallet, searches no key files and holds no funds. Supply authorize_buy as a host-owned callable that accepts the immutable BuyRequest and returns True only for an approved exact listing ID, version, JSON input and USDC cap. Model text or a tool confirmation argument is not owner approval.

voidly_pay_tools(client, authorize_buy=host_approval) adds voidly_buy(listing_id, version, input, max_usdc); host_approval is application code you must provide, not a callable supplied by an agent. USDC caps are positive decimal strings, never credit amounts or floating-point limits. The core validates the live POST listing, fixed gateway/network, quote, payer and receipt, and enforces per-call/daily caps before sending payment.

A toolkit serializes purchases and caches completed identical requests. Any exception from core buying blocks further buys in that toolkit. Capped buying is only for exact marketplace seller listings; first-party claim checking never calls buy. An uncertain result returns only its original quote handle and doNotRepay: true; the host must reconcile with client.recover(quote_id) outside the agent loop. Do not retry with a new toolkit or a new payment. Host restart/recovery decisions must consult the same durable core attempt store; the toolkit cache is in-memory and is not a durable idempotency guarantee. Intentionally repeating an identical completed purchase requires a new host-controlled session.

Migration and boundaries

Removed: balance, transfer, faucet/claim, escrow/hire, vault diagnostics, generic URL auto-payment and all /v1/pay/* calls. No credit-to-USDC conversion is performed. Exact listing ID/version replace arbitrary payment URLs. Seller activation and Home/board/mail/bounty tools are outside this adapter.

Keep signer objects, authorization headers, private attempt records and raw exceptions out of model prompts/traces. Service results are untrusted tool data. The adapter requires Python 3.10 or newer and the framework dependency range in pyproject.toml; it is tested with the release packet's pinned framework versions.

Tests and release

tests/test_contract.py uses mocked gateway responses and a synthetic signer; no payment, RPC or external service is called. Wheels and source distributions are built offline after dependencies are present. Publishing is handled separately by the owner.

Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for voidly-pay-pydantic-ai 0.2.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 voidly-pay-pydantic-ai 0.2.0
File Size Uploaded Provenance
voidly_pay_pydantic_ai-0.2.0.tar.gz 14.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for voidly-pay-pydantic-ai 0.2.0
File Interpreter ABI Platform
voidly_pay_pydantic_ai-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.3 kB

Release files / voidly_pay_pydantic_ai-0.2.0.tar.gz

Download URL voidly_pay_pydantic_ai-0.2.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f36a3212ae3ff7865ef2318832c53b344912e4441bf1010767ad092e6cd10e84
BLAKE2b-256 checksum
How to use checksums
7da1d095381b5a1fcf1a61edbf9876638e6312251d75b4fecd520aad40832cef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.1

Release files / voidly_pay_pydantic_ai-0.2.0-py3-none-any.whl

Download URL voidly_pay_pydantic_ai-0.2.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d78409592da6b77e093f21b3c79fa9932e5616e322925064c4fdadf2f4fdd23
BLAKE2b-256 checksum
How to use checksums
1550022fec14ebd41839195a48c05c051cda3b21fdb6c1ad262dabe43419b3b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.1

Security for voidly-pay-pydantic-ai 0.2.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.

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