Core.rq_database is a collection of function wrappers around the Discogs api for database interactions.
Release¶
A release represents a particular physical or digital object released by one or more Artists.
# Example for usage of get_releases
get_release(user=example_user,
release_id=6067651,
curr_abbr=CurrAbbr.EUR)
# Example for usage of get_user_release_rating
get_user_release_rating(user=example_user,
release_id=9453891,
username="darkwolf")
# Example for usage of update_user_release_rating
update_user_release_rating(user=example_user,
release_id=10361797,
username="discogspy",
rating=5)
# Example for usage of delete_user_release_rating
delete_user_release_rating(user=example_user,
release_id=10361797,
username="discogspy")
# Example for usage of get_community_release_rating
get_community_release_rating(user=example_user,
release_id=1995816)
Master Release¶
A Master release represents a set of similar Releases. Masters releases have a “main release” which is often the chronologically earliest.
# Example for usage of get_master_release
get_master_release(user=example_user,
master_id=195663)
# Example for usage of get_releases_related_to_master_release
get_releases_related_to_master_release(user=example_user,
master_id=57960,
page=1,
per_page=50,
release_format="CD",
label="label",
released="1989",
country="country",
sort=SortOptionsMaster.released,
sort_order=SortOrder.asc)
Artist¶
An Artist represents a person in the Discogs database who contributed to a Release in some capacity.
# Example for usage of get_artist
get_artist(user=example_user,
artist_id=1516559)
# Example for usage of get_artist_releases
get_artist_releases(user=example_user,
artist_id=1516559,
page=1,
per_page=3,
sort=SortOptionsArtist.year,
sort_order=SortOrder.desc)
Label¶
A label resource represents a label, company, recording studio, location, or other entity involved with artists and releases.
# Example for usage of get_label
get_label(user=example_user,
label_id=18263)
# Example for usage of get_label_releases
get_label_releases(user=example_user,
label_id=18263,
page=1,
per_page=3,
sort=SortOptionsLabel.year,
sort_order=SortOrder.desc)