Skip to main content

MUsic MEtadata Explorer

Project description

Mumee

Get metadata about your favorite songs and playlists !
Mumee stands for MUsic MEtadata Explorer

Features

  • Automatic metadata fetching from different services
    • Currently supported : Spotify, Youtube Music
  • Metadata fetching from an URL or a query
  • Supports playlist URLs
  • Easy to use, straightforward interface
  • Possible to use via DI integration

Installation

Pip

pip install mumee

Poetry

Poetry is a Python dependency management and packaging tool. I actually use it for this project.

poetry add mumee

Usage

There are 2 ways to use this library : using the SongMetadataClient object or via the DI.

Using SongMetadataClient

The library exposes the SongMetadataClient class. This class has 1 methods : search.

This method fetches the metadata corresponding to the request you give it, whether it is an URL or a query. It returns the result as a SongMetadata object or a PlaylistMetadata object.

Example :

from mumee import SongMetadataClient

client = SongMetadataClient()
result = client.search("in the end - linkin park")

title = result.title # In The End

Using DI

The library also exposes a BaseMetadataClient interface and a add_mumee function for Taipan-DI.

In this function, the clients are registered as a Pipeline. All you need to do is to resolve the pipeline and execute it.

Example :

from mumee import BaseMetadataClient, add_mumee
from taipan_di import DependencyCollection

services = DependencyCollection()
add_mumee(services)

provider = services.build()
client = provider.resolve(BaseMetadataClient)

result = client.exec("in the end - linkin park")
title = result.title # In The End

Inspirations

This library is partially based on spotDL's spotify-downloader.

TODO

This library isn't stable yet and a lot of things can still be improved. If there is something you want to see added or if something does not work as you want it to, feel free to open an issue.

Here is a list of features I have in mind and will be working on :

  • Support for Amazon Music
  • More metadata in the SongMetadata class
  • Allow return of multiple results

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

mumee-0.0.4.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

mumee-0.0.4-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file mumee-0.0.4.tar.gz.

File metadata

  • Download URL: mumee-0.0.4.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.17 Linux/5.15.0-1041-azure

File hashes

Hashes for mumee-0.0.4.tar.gz
Algorithm Hash digest
SHA256 81f365a4fece5bba2ed60461b2aa7f7080b99394ee8c5cdf3c6e4713660121cb
MD5 5226e6b21c35bd7506740c0368b125c2
BLAKE2b-256 b70df52b6a973bedc76ac8545652dfd009edcaba020470ce11ee5b2fad384f3e

See more details on using hashes here.

File details

Details for the file mumee-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: mumee-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.17 Linux/5.15.0-1041-azure

File hashes

Hashes for mumee-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 61c65605a1e99062b1f3b674916ed3b9721e442e9e2b094e6d8039d669ee296b
MD5 0fb20a56ba5215a54bdd68c9f83d3258
BLAKE2b-256 dc57782642ea49d07393ed3d37b0c37e58f3bc21e7859ab45992bd8579c7f304

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