Skip to content

matchtune-sdk/python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, 1)

  ## -- create a search query
  query = api.makeQuery(genre, 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.

About

A framework library to access MatchTune API

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages