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.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pianosdk-17.1.1.tar.gz | 111.7 kB | Without provenance | Details for pianosdk-17.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pianosdk-17.1.1-py3-none-any.whl | Python 3 | none | any | Details for pianosdk-17.1.1-py3-none-any.whl |
Total release size: 465.1 kB
Release files / pianosdk-17.1.1.tar.gz
| Download URL | pianosdk-17.1.1.tar.gz |
|---|---|
| Size | 111.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f38fc96ae1ab9ce569d958f87d5d2b3757ff8cade621c8c2b8c8ec2a48dff5f
|
|
BLAKE2b-256 checksum How to use checksums |
501f09de0c49584db6edfcf907acac269d1600669c4d4f3b40f4d9a526b524ef
|
| 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.1.1-py3-none-any.whl
| Download URL | pianosdk-17.1.1-py3-none-any.whl |
|---|---|
| Size | 353.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df2f6d07655dd27912446f387d41436b8a65ade988dd0ca55cf1c789cb059526
|
|
BLAKE2b-256 checksum How to use checksums |
d713eade6962a0e2e9184407ca0ca365142a52d43fd3aece592374985a70881a
|
| 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.1.1
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.