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 16.975.2

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 16.975.2
File Size Uploaded Provenance Actions
pianosdk-16.975.2.tar.gz 110.7 kB Without provenance Details for pianosdk-16.975.2.tar.gz

Built distribution (wheel)

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

Total release size: 461.0 kB

Release files / pianosdk-16.975.2.tar.gz

Download URL pianosdk-16.975.2.tar.gz
Size 110.7 kB
Tags Source
SHA-256 checksum
How to use checksums
912804b1952f34664cedff31f2d65ecb976fb395da8fcaf469087fc86bc5fab1
BLAKE2b-256 checksum
How to use checksums
b485313fa411a7c96ab84dc574019d8da12cdf0febbce7cdb9020fa0076a92e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.15.0

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

Download URL pianosdk-16.975.2-py3-none-any.whl
Size 350.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e428aa03ff00537aa5e1f6af2d24ab3f9ab2e1c9aee8bf6dfc93dab4e17bc05c
BLAKE2b-256 checksum
How to use checksums
10fe20e8d38d8d2b7518e739e5de32b3c111f2ced42a9ecc49ec81c075c726b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.15.0

Security for pianosdk 16.975.2

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

16.975.2 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