Skip to content
/ libpybee Public
forked from liamks/libpytunes

MusicBee Library Parser in Python (based on Liam Kaufman's "libpytunes").

License

Notifications You must be signed in to change notification settings

Dyl-M/libpybee

 
 

Repository files navigation

Version GitHub Actions Workflow Status GitHub Actions Workflow Status
GitHub last commit GitHub commit activity DeepSource

A MusicBee Library Parser, by Dylan "Dyl-M" Monfret, based on Liam "liamks" Kaufman's libpytunes.

MusicBee settings requirements and Disclaimers

  • To use this package, you need to enable MusicBee to export the library in XML format for iTunes (Edit > Edit Preferences > Library), as shown in the image below.

  • The file should end up in the same place as your library's .mbl file.
  • The language in which this file is exported depends on the language set in MusicBee. For the time being, this package will only support library XML files written in English, so you'll need to set MusicBee's language to English (Edit > Edit Preferences > General). "English (US)" is recommended.
  • Before using libpybee, it is also recommended to back up / to copy this XML file associated to your MusicBee Library elsewhere. I cannot guarantee at this time that no damage will occur to your file while using the package.
  • Runs on Python 3.8 and above. May work with earlier versions of Python 3, but not guaranteed.

Installation

python -m pip install --upgrade pip # Optional
pip install libpybee

Usage

import libpybee

MY_LIBRARY = libpybee.Library("iTunes Library.xml")

# Use `tracks` attribute, the dictionary containing each track from MusicBee, to iterate over them.
for track in MY_LIBRARY.tracks.values():
    print(track)  # Output: [track.id] {track.artist} - {track.title}

More samples will be available in the _examples folder in the near future.

Full documentation ➡️ dyl-m.github.io/libpybee.

Acknowledgements

All contributors from the legacy project libpytunes are listed here.

About

MusicBee Library Parser in Python (based on Liam Kaufman's "libpytunes").

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 99.3%
  • CSS 0.7%