Skip to main content

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


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)

Uploaded Source

Built Distribution

matchtune_sdk-1.0.1-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page