Core.user is a collection of wrappers for information about a user.
User¶
A user object is a container that represents a discogspy user. It holds necessary information needed to communicate via the Discogs API.
# Example UserWithoutAuthentication
user_without_authentication = UserWithoutAuthentication()
# Example UserWithUserTokenBasedAuthentication
with open(Path("../config/example_user_info.json"), "r") as user_config_file:
config = json.load(user_config_file)
example_user = UserWithUserTokenBasedAuthentication(user_token=config["user_token"],
user_agent=config["user_agent"])