from attr import attrib, attrs @attrs class PlaylistByTrack: id = attrib(type=str) added_date = attrib(type=str) # '2021-09-21' name = attrib(type=str) country_code = attrib(type=str) image_url = attrib(type=str) current_position = attrib(type=int) track_id = attrib(type=str) personalized = attrib(type=bool) updated_date = attrib(type=str) # '2021-09-23' is_new = attrib(type=bool) trend = attrib(type=int) current_streams = attrib(type=str) followers = attrib(type=int) prev_streams = attrib(type=str) category_id = attrib(type=int) category_name = attrib(type=str) username = attrib(default=None) position_change_date = attrib(default=None) position_ui = attrib(default=None) category_market = attrib(default=None)