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.964.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.964.0
File Size Uploaded Provenance Actions
pianosdk-16.964.0.tar.gz 110.0 kB Without provenance Details for pianosdk-16.964.0.tar.gz

Built distribution (wheel)

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

Total release size: 458.8 kB

Release files / pianosdk-16.964.0.tar.gz

Download URL pianosdk-16.964.0.tar.gz
Size 110.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8586fb14f2c7a7e7cc808c8a2e8dfb0cbcaaa0bca7ac3e2cc155493bea54a0d7
BLAKE2b-256 checksum
How to use checksums
bbf7f9336f6a4b17ec20f4fae5657df505fd0cd503dd5ef397f15c2185fe9875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.14.8

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

Download URL pianosdk-16.964.0-py3-none-any.whl
Size 348.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4272f1c3f3c993af94b1ea6413f10541dc0d4ecfb6fb9625fe01e2180456640
BLAKE2b-256 checksum
How to use checksums
16ade9bc37f8f225b1edff88f081512b6313a12d6c16c72ebcd8912de67ea165
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.14.8

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