Skip to main content

A micro client for MusicBrainz

Project description

MusicBrainzAPI

A series of scripts that enable retrieving information from MusicBrainz API: https://musicbrainz.org/doc/MusicBrainz_API

Usage

import jsonpickle
from music_brainz_api_micro.music_brainz_api import MusicBrainzAPI as MB

mb = MB()
artist = mb.get_artist_by_mbid(
    "35f92c4a-69d0-4ed1-ab9e-05259db89d14"
    )
if artist.error is False:
    artist_obj = jsonpickle.decode(artist.reponse)
    print(artist_obj["sort-name"])
    # "At the Gates" 

Functions

Get artist data using unique identifier

get_artist_by_mbid(mbid)

Get all releases by artist

get_releases_by_artist(mbid)

Get just a list of release titles

get_release_titles_by_artist(mbid)

Build

python -m build
python -m twine upload dist/*

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

music_brainz_api_micro-0.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

music_brainz_api_micro-0.1.0-py3-none-any.whl (4.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