Skip to main content

A framework library to access Muzeek API

Project description

Muzeek SDK for Python

This repository contains the open source Muzeek SDK that allows you to access the Muzeek API from your Python app.

Installation

The Muzeek Python SDK can be installed with Pip. Run this command:

pip install muzeek-sdk

Usage

Simple Muzeek Query Example

import random

from muzeek_sdk import Muzeek

api = Muzeek({"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@muzeek.co.

Project details


Release history Release notifications

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for muzeek-sdk, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size muzeek_sdk-1.0.0-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size muzeek-sdk-1.0.0.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page