from attr import attrib, attrs @attrs class TopChartsTrack: artist = attrib(type=str) is_re_enter = attrib(type=bool) name = attrib(type=str) isrc = attrib(type=str) change = attrib(type=int) id = attrib(type=str) is_starred_track = attrib(type=bool) artists = attrib(type=dict) streams = attrib(type=int) trend = attrib(type=int) image_url = attrib(type=str) chart_date = attrib(type=str) position = attrib(type=int) is_sony = attrib(type=bool) is_new = attrib(type=bool) distributed_by = attrib()