Pincer SDK for Python - Reference implementation for x402 protocol
Project description
Pincer SDK for Python
The Pincer SDK provides a reference implementation for the x402-sponsored access protocol. It allows AI agents and applications to seamlessly interact with Pincer-enabled API endpoints, handling payments and automated rebates.
Installation
pip install pincer-sdk
Quick Start
from pincer_sdk import PincerClient
# Initialize the client
client = PincerClient(api_url="https://api.pincer.xyz")
# Call a payment-gated endpoint
response = client.call_endpoint("/v1/data")
print(response.json())
Features
- x402 Protocol Support: Native handling of
402 Payment Requiredresponses. - Automated Payments: Integration with Solana wallets for frictionless transactions.
- Sponsor Awareness: Built-in support for detecting and processing post-pay rebates.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pincer_sdk-0.1.0.tar.gz.
File metadata
- Download URL: pincer_sdk-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
597039065c994a379a49bd4297a8864c21ada3a3b8cebc50704c45b565b8190b
|
|
| MD5 |
8493da463d8bafaf90c6163d1d39b6e4
|
|
| BLAKE2b-256 |
0e4dac5ccad93bcb8c3a42e6c00581d61f13b25060097545d1ece7f51cec5dbf
|
File details
Details for the file pincer_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pincer_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2febc57d5de1cdde434fb9b6e1f8df8bfc7a92e6bc58f45c8425e89630ce2dfd
|
|
| MD5 |
ed649766646f43d409a64674c336487d
|
|
| BLAKE2b-256 |
c80f8257ef1b943c8bb0b2121b6c2d8ee0f7c5a0658ef8baa8a1ef0bdbe74958
|