My favorites | Sign in
Project Home Issues Source
Project Information
Members

Python Music Player (PyMP)

At the moment this is my private music player. The source-code is uploaded, but there are no instructions on how to get this running! :) Some info is on this page. Note that this page does not talk about the underlying ideas, plugins, and more.

-- Remco

Introduction

PyMP is a music player daemon written in Python for Linux operating systems. PyMP is currently heavily in development. At this moment it has little functionality. It will not do what you want it to do, unless you want it to play and scrobble last.fm radio. This means that it probably is not what you are looking for!

Requirements

Linux

  • dbus

Python 2

  • pygst (gstreamer)
  • mutagen
  • python simplejson
  • python dateutil
  • python urwid (optional, ncurses interface only)
  • python libnotify (optinonal, only for the libnotify plugin)

Installation

There is no installation needed. You can create symbolic links in your bin folders if you like.

Starting the Daemon

./pymp-daemon

Your music collection(s)

TODO: This is programmatically not finished yet!

Connecting to Last.fm

There is little program which grants PyMP access to use your Last.fm account. Once this is done, PyMP is able to scrobble tracks to last.fm. It can also play Last.fm radio if you pay Last.fm for it. It queues your scrobbles when you are listening offline. You can find this little program here: ./lastfm/setup-lastfm.py. It justs opens your browser with a Last.fm page where you have to accept.

Scrobbling last.fm radio to last.fm from PyMP.

Command Line Control

PyMP can be controlled over the command line. Currently the following commands are supported:

./pymp-cli.py player start
./pymp-cli.py player stop
./pymp-cli.py player next
./pymp-cli.py player prev

When you are a last.fm subscriber you can tune to last.fm radio stations by: ./pymp-cli.py tune RADIOSTATIONNAME . Here RADIOSTATION has to be substituted by your radio station of desire, e.g. :

./pymp-cli.py tune lastfm://user/theunknowncylon/personal

Curses Interface

Note: you have to checkout the branch "cli" for this.

There is a curses interface available, which you can start by running ./pymp-curses.py. Below you can find two screenshots. Note that the background is my desktop wallpaper (some terminal transparency here).

Curses interface - Browsing your music collection.

Curses interface - Your playlist.

Powered by Google Project Hosting