MusicBee Library Parser in Python (based on Liam Kaufman's "libpytunes")
Project description
libpybee
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libpybee-0.2.0.tar.gz
(7.1 kB
view details)
Built Distribution
File details
Details for the file libpybee-0.2.0.tar.gz
.
File metadata
- Download URL: libpybee-0.2.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05df7841d0a71c60aacede9d9605cfa9325ded890f0031bda7ca41c96b475aa8 |
|
MD5 | 814d3b0712d04f5b3416e21b4ac02839 |
|
BLAKE2b-256 | a3aae7bbe1e1c0267c0a8454fb693ab9970544b1a9c44eb965ba459239626e20 |
File details
Details for the file libpybee-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: libpybee-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0971ca63950cc981d7aaf87ab86d5db89c9c3b403d8492e17f3a708635024f1c |
|
MD5 | bfb996ac0a7b84547a6a8e6c0e060847 |
|
BLAKE2b-256 | b75b2bf9abf64c6e989c3e61731940e69e6330c628b8cd4ba886b42bc73d0a35 |