MPD PyDB¶
-
class
mpd_pydb.db.Database(format_version, mpd_version, supported_tags, songs=None)[source]¶ Bases:
objectParameters: Raises: - ValueError – If the format_version is not supported or mpd_version is None
- TypeError – If
supported_tagsis not iterable
-
format_version= None¶ The database format version
-
mpd_version= None¶ The version of MPD that created this database
-
songs= None¶ A
listof songs in this database
A
listcontaining the names of all supported tags
-
to_dataframe()[source]¶ Convert this database to a pandas DataFrame. In addition to the tags already loaded, the two columns
TotalDiscsandTotalTrackswill be populated with the values fromDiscandTracktags (ID3 only). TheDiscandTracktags will no longer contain information about the total amount of discs and tracks after the conversion.Return type: DataFrame