A micro client for MusicBrainz, implements simple functions to retrieve information
Project description
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/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file music_brainz_api_micro-0.1.10.tar.gz.
File metadata
- Download URL: music_brainz_api_micro-0.1.10.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d479c8e192ff97f6fa22926c70cbb50c7c8668a8ca518049129d41021f01b31
|
|
| MD5 |
a12a299dd0d0403bac91173f091a8ff6
|
|
| BLAKE2b-256 |
fe811f740c0f93481e31a8688136dc56ea2f5a149fa528c9f57585f6e5359db2
|
File details
Details for the file music_brainz_api_micro-0.1.10-py3-none-any.whl.
File metadata
- Download URL: music_brainz_api_micro-0.1.10-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbcfbbe11ea934da3a9ea6b478447e091948e3878dd368b69fcced97bb9a724e
|
|
| MD5 |
96f9c29b21e7842b8923782d0695ab12
|
|
| BLAKE2b-256 |
fdaa5b29973d2dd00900f79d3788085e11a9e6e2d8392b00a3eac96284e175f3
|