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.
Metadata
Release files for libpybee 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| libpybee-0.2.1.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libpybee-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / libpybee-0.2.1.tar.gz
| Download URL | libpybee-0.2.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7eebc369a00023a1d8d174b750cba629add3474a6ae70601efcfc349db0ec319
|
|
BLAKE2b-256 checksum How to use checksums |
ee4b4f347c281f2aaaa18c0036fa9bba4cbc170f4c113ae75f0b8e4f1a9a0858
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Release files / libpybee-0.2.1-py3-none-any.whl
| Download URL | libpybee-0.2.1-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6840ec531afedc2cd421ca4afbcb047ca16375907e49c21012eaa1ab07970ff6
|
|
BLAKE2b-256 checksum How to use checksums |
42bbe998db5381fae866d61e9e64dc12df89d04c8b587fc773a9c6ef81da637f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|