Skip to main content

Piano API SDK

This is simple wrapper for Piano API.

Requirements

Python 3.7+

Examples

VX API

from pianosdk import Client, AccessTokenStorage

host = 'sandbox' # use 'production', 'sandbox' or custom endpoint here, like 'https://api-ap.piano.io'
client = Client(api_host=host, api_token='TOKEN', private_key='PRIVATE_KEY')
response = client.access_api.list('AID')
print(response)
response = client.publisher_term_api.list('AID')
print(response)
response = client.userref_create('UID', 'EMAIL')
print(f'User ref for [uid=UID, email=EMAIL]: {response}')
response = client.parse_webhook_data('WEBHOOK_DATA')
print(f'Webhook event: [{type(response)}] {response}')
token_storage = AccessTokenStorage(client.config)
response = token_storage.get_access_token('UNKNOWN_RID')
print(f'Access token for unknown rid: {response}')
token_storage.parse_access_tokens('TAC_VALUE')
# or use
token_storage.parse_access_tokens_from_cookies_string('ALL_COOKIES_STRING')
response = token_storage.get_access_token('RID')
print(f'Access token for known rid: {response}')

ID API

from pianosdk import Client
from pianosdk.id import PublisherLoginRequest
client = Client(environment='sandbox', api_token='TOKEN')
request = PublisherLoginRequest(aid='AID', email='test@example.com', password='1234')
response = client.publisher_identity_api.login(authorization=client.config.api_token, body=request)
print(response)

Metadata

Release files for pianosdk 17.11.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 pianosdk 17.11.0
File Size Uploaded Provenance Actions
pianosdk-17.11.0.tar.gz 112.0 kB Without provenance Details for pianosdk-17.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pianosdk 17.11.0
File Interpreter ABI Platform Actions
pianosdk-17.11.0-py3-none-any.whl Python 3 none any Details for pianosdk-17.11.0-py3-none-any.whl

Total release size: 467.7 kB

Release files / pianosdk-17.11.0.tar.gz

Download URL pianosdk-17.11.0.tar.gz
Size 112.0 kB
Tags Source
SHA-256 checksum
How to use checksums
205cb6d4557aadf7faa9ddb949bad4f2478928001d5567f0741a4e79c17303b2
BLAKE2b-256 checksum
How to use checksums
b60d3a2829a80a2f110ad4e9876b22f82f6321c1ad8848e9451e0b1c5c40f87d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / pianosdk-17.11.0-py3-none-any.whl

Download URL pianosdk-17.11.0-py3-none-any.whl
Size 355.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e785c280e34ba456c4b84c6c3294dd86ce9c86023a4d3455b4333dd1c532f3cb
BLAKE2b-256 checksum
How to use checksums
58a32700b30db83b14a907624518270fa4318ff6d97e44b35b3505847a16eb3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.15.2

Security for pianosdk 17.11.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.

Release history Release notifications | RSS feed

This release

17.11.0 This release

2 release files No provenance

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