Skip to main content

A package to handle transaction events and send payloads.

Project description

PaymentAI

A Python client for interacting with the Paid API. This package allows you to send transaction events to the API.

Installation

Use the package manager pip to install PaymentAI.

pip install paymentAI

Usage

from agent_paid_client import ApClient

# Initialize the client
client = ApClient("your-api-key")

# Record usage events
client.record_usage(
    "your-agent-id",
    "customer-id",
    "event-name",
    {"your": "data"}
)

# Events are automatically flushed every 30 seconds
# or when the buffer reaches 100 events
# To manually flush:
client.flush()

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

paid_ai_client-0.2.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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