""" The data structures of the ampache API (songs, artists, albums, etc). """ from dataclasses import dataclass import datetime @dataclass class AuthToken: expires: datetime.datetime auth: str def __str__(self): return f"Expires: {self.expires}\nToken: {self.auth}" @dataclass class Song: song_id: str title: str album: str artist: str def __str__(self): return f"{self.title} by {self.artist}" @dataclass class Error: code: int message: str def __str__(self): return f"{self.message} with code {self.code}"