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

Built distribution (wheel)

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

Total release size: 464.5 kB

Release files / pianosdk-16.988.0.tar.gz

Download URL pianosdk-16.988.0.tar.gz
Size 111.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d720477570b285e3e3666f7bb56141893e17e3a6d5a6e3b6e64cef33bd24ef0d
BLAKE2b-256 checksum
How to use checksums
e212cf3a342c53c10fe5d7449c09ebe1ec8048154de3b328c24cd63b6793f286
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.15.1

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

Download URL pianosdk-16.988.0-py3-none-any.whl
Size 353.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33fbbc296a2c5a519a0e582a3856004a8b5f37acf43515c12b3054893ed3a69a
BLAKE2b-256 checksum
How to use checksums
92c1e4ed8570c90ff6a668cbe14d64ca85e8c291e8cb2c94d0a576c9fc9a383c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.15.1

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

16.988.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