Skip to main content

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

Project description

libpybee

PyPI - 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.

Installation

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

Usage

import libpybee

XML = "../MusicBee/iTunes Music Library.xml"  # Needs to be modified depending on the location of your MB library.
MY_LIBRARY = libpybee.Library(XML)

print(MY_LIBRARY)  # Displays a short summary of MB library status

for track in MY_LIBRARY.tracks.values():
    print(track, track.genre)  # Displays each track with their genres

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

Documentation

Work In Progress.

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

libpybee-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

libpybee-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file libpybee-0.1.1.tar.gz.

File metadata

  • Download URL: libpybee-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for libpybee-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2cb16ab1cf920859e4fda9086236ed276ebb6dea3968d598e66d932f255fbe77
MD5 5d256f1c304dc5631a54442620c1c770
BLAKE2b-256 b5862896551030f89605e070be5cc377d5fada9161559ba0457db417a2ea6c1b

See more details on using hashes here.

File details

Details for the file libpybee-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: libpybee-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for libpybee-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c72eef628e6099aaf60a2e2fc19f619a113e2bcca848a21cfe441316b6274004
MD5 297b7b82949b6c5b67a24b871d935bdc
BLAKE2b-256 f22e670de0b65a0b81fa6e72dc583d3965c9d84fb50e8675996380816073ec4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page