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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paid_ai_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: paid_ai_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9141dfb03701effae64e69186edcfcc6314d07972d23611eab664ee8c69a7d6b
|
|
| MD5 |
3cb9d6074fbe1c148ba0a089d363742c
|
|
| BLAKE2b-256 |
a2deb235fb05d86f8704397ca4fbd3cb87dd4ea160bc3f8555bcb9e138f2d6e8
|