MusicBee Library Parser in Python (based on Liam Kaufman's "libpytunes")
Project description
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
.mblfile. - 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libpybee-0.2.1.tar.gz.
File metadata
- Download URL: libpybee-0.2.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eebc369a00023a1d8d174b750cba629add3474a6ae70601efcfc349db0ec319
|
|
| MD5 |
9045ed6699514efe26e7bdf5ff6844e1
|
|
| BLAKE2b-256 |
ee4b4f347c281f2aaaa18c0036fa9bba4cbc170f4c113ae75f0b8e4f1a9a0858
|
File details
Details for the file libpybee-0.2.1-py3-none-any.whl.
File metadata
- Download URL: libpybee-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6840ec531afedc2cd421ca4afbcb047ca16375907e49c21012eaa1ab07970ff6
|
|
| MD5 |
b7fd9e3d110ab339904c5ea2a5ffa7eb
|
|
| BLAKE2b-256 |
42bbe998db5381fae866d61e9e64dc12df89d04c8b587fc773a9c6ef81da637f
|