How to use the tekore._model.serialise.ModelList function in tekore

To help you get started, we’ve selected a few tekore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github felix-hilden / spotipy / tekore / _model / category.py View on Github external
def __post_init__(self):
        self.items = ModelList(Category(**c) for c in self.items)
github felix-hilden / spotipy / tekore / _model / album / base.py View on Github external
def __post_init__(self):
        self.album_type = AlbumType[self.album_type.lower()]
        self.artists = ModelList(SimpleArtist(**a) for a in self.artists)
        self.images = ModelList(Image(**i) for i in self.images)
        self.release_date_precision = ReleaseDatePrecision[
            self.release_date_precision
        ]
github felix-hilden / spotipy / tekore / _model / album / full.py View on Github external
def __post_init__(self):
        super().__post_init__()
        if self.available_markets is not None:
            self.available_markets = ModelList(self.available_markets)
        self.copyrights = ModelList(Copyright(**c) for c in self.copyrights)
        self.genres = ModelList(self.genres)
        self.tracks = SimpleTrackPaging(**self.tracks)
github felix-hilden / spotipy / tekore / _model / audio_analysis.py View on Github external
def __post_init__(self):
        self.bars = ModelList(TimeInterval(**i) for i in self.bars)
        self.beats = ModelList(TimeInterval(**i) for i in self.beats)
        self.sections = ModelList(Section(**s) for s in self.sections)
        self.segments = ModelList(Segment(**s) for s in self.segments)
        self.tatums = ModelList(TimeInterval(**i) for i in self.tatums)
github felix-hilden / spotipy / tekore / _model / album / __init__.py View on Github external
def __post_init__(self):
        super().__post_init__()
        if self.album_group is not None:
            self.album_group = AlbumGroup[self.album_group]
        if self.available_markets is not None:
            self.available_markets = ModelList(self.available_markets)
github felix-hilden / spotipy / tekore / _model / recommendations.py View on Github external
def __post_init__(self):
        self.seeds = ModelList(RecommendationSeed(**s) for s in self.seeds)
        self.tracks = ModelList(FullTrack(**t) for t in self.tracks)
github felix-hilden / spotipy / tekore / _model / track.py View on Github external
def __post_init__(self):
        self.items = ModelList(SavedTrack(**t) for t in self.items)
github felix-hilden / spotipy / tekore / _model / show / base.py View on Github external
def __post_init__(self):
        self.available_markets = ModelList(self.available_markets)
        self.copyrights = ModelList(Copyright(**c) for c in self.copyrights)
        self.images = ModelList(Image(**i) for i in self.images)
        self.languages = ModelList(self.languages)
github felix-hilden / spotipy / tekore / _model / category.py View on Github external
def __post_init__(self):
        self.icons = ModelList(Image(**i) for i in self.icons)
github felix-hilden / spotipy / tekore / _model / artist.py View on Github external
def __post_init__(self):
        self.followers = Followers(**self.followers)
        self.genres = ModelList(self.genres)
        self.images = ModelList(Image(**i) for i in self.images)