Skip to main content

MusicBrainzAPI

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

Usage

When calling the public functions you will usually get a Response object. You can check the error property to determine if the REST call was successful, error_text will attempt to hold some more useful information regarding the error.

Once successful the response property contains the expected data structure from MusicBrainz

import jsonpickle
from music_brainz_api_micro import MusicBrainzAPI as MB

mb = MB()
result = mb.get_artist_by_mbid(
    "35f92c4a-69d0-4ed1-ab9e-05259db89d14"
    )
if result.error is False:
    artist_obj = jsonpickle.decode(result.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)

Maintenance

Safely delete all cache files, default in $HOME/.cache/MusicBrainzAPI

Build

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

Metadata

Release files for music-brainz-api-micro 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for music-brainz-api-micro 0.1.10
File Size Uploaded
music_brainz_api_micro-0.1.10.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for music-brainz-api-micro 0.1.10
File Interpreter ABI Platform
music_brainz_api_micro-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / music_brainz_api_micro-0.1.10.tar.gz

Download URL music_brainz_api_micro-0.1.10.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1d479c8e192ff97f6fa22926c70cbb50c7c8668a8ca518049129d41021f01b31
BLAKE2b-256 checksum
How to use checksums
fe811f740c0f93481e31a8688136dc56ea2f5a149fa528c9f57585f6e5359db2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / music_brainz_api_micro-0.1.10-py3-none-any.whl

Download URL music_brainz_api_micro-0.1.10-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbcfbbe11ea934da3a9ea6b478447e091948e3878dd368b69fcced97bb9a724e
BLAKE2b-256 checksum
How to use checksums
fdaa5b29973d2dd00900f79d3788085e11a9e6e2d8392b00a3eac96284e175f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page