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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file matchtune-sdk-1.0.1.tar.gz.

File metadata

  • Download URL: matchtune-sdk-1.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.5

File hashes

Hashes for matchtune-sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2e3df2bc343b7260a23eb441ed3779a9cbbeece72eace243c98cfce8a2be1463
MD5 5ee1914f80e821dddf10883b88463856
BLAKE2b-256 251ceb20f80ac6defa19d84e0e265a5de28f1d7d27e7463e5c02cff19429e9d5

See more details on using hashes here.

File details

Details for the file matchtune_sdk-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: matchtune_sdk-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.5

File hashes

Hashes for matchtune_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 711f048cf3105653c104b4246d7274e02566bd9c0eb67dcff899401a0031cc34
MD5 8804adf1c78199aec4ad942668ce898a
BLAKE2b-256 a5dd57c68341b9fc5afbbe514d5d9ba28ab62e59954dec74c11aa95cb337791f

See more details on using hashes here.

Supported by

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