A framework library to access MatchTune API
Project description
MatchTune SDK for Python
This repository contains the open source MatchTune SDK that allows you to access the MatchTune API from your Python app.
Installation
The MatchTune Python SDK can be installed with Pip. Run this command:
pip install matchtune-sdk
Usage
Simple MatchTune Query Example
import random
from matchtune_sdk import MatchTune
api = MatchTune({"app_token" : app_token})
haserror = True
## -- Load genre & subgenre list
genres = api.genres()
if genres != None:
## -- pick a random genre
genre = random.sample(genres.keys(), 1)
## -- create a search query
query = api.makeQuery(genre, subgenre = None, title = None, tags = None)
## -- request a standard generated music
idcard = api.generate(query)
if idcard != None:
haserror = False
## -- use the data
printIDCard(idcard)
}
}
Api documentation
All mechanisms developed here are documented on our REST API documentation.
License
Please see the license file for more information.
Security Vulnerabilities
If you have found a security issue, please contact the support team directly at support@matchtune.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matchtune-sdk-1.0.1.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for matchtune_sdk-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 711f048cf3105653c104b4246d7274e02566bd9c0eb67dcff899401a0031cc34 |
|
MD5 | 8804adf1c78199aec4ad942668ce898a |
|
BLAKE2b-256 | a5dd57c68341b9fc5afbbe514d5d9ba28ab62e59954dec74c11aa95cb337791f |