Skip to main content

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 Required responses.
  • 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


Download files

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

Source Distribution

pincer_sdk-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

pincer_sdk-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for pincer_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 597039065c994a379a49bd4297a8864c21ada3a3b8cebc50704c45b565b8190b
MD5 8493da463d8bafaf90c6163d1d39b6e4
BLAKE2b-256 0e4dac5ccad93bcb8c3a42e6c00581d61f13b25060097545d1ece7f51cec5dbf

See more details on using hashes here.

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

Hashes for pincer_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2febc57d5de1cdde434fb9b6e1f8df8bfc7a92e6bc58f45c8425e89630ce2dfd
MD5 ed649766646f43d409a64674c336487d
BLAKE2b-256 c80f8257ef1b943c8bb0b2121b6c2d8ee0f7c5a0658ef8baa8a1ef0bdbe74958

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