mpd-control

A Python MPD controller using python-mpd2


Keywords
mpd, python
License
GPL-3.0
Install
pip install mpd-control==0.1

Documentation

Basic python program to control MPD from command line.

Requires python-mpd2

pip install --user python-mpd2

Basic help output:

$ ./mpd-control.py --help                     
usage: mpd-control.py [-h] [-p] [-S] [-n] [-s] [-v VOLUME] [-i IP] [-P PORT]

Control playback on your mpd server.

optional arguments:
  -h, --help            show this help message and exit
  -p, --pause           Toggles playback
  -S, --song            Prints info on the current song
  -n, --next            Next song
  -s, --shuffle         Toggles shuffle
  -v VOLUME, --volume VOLUME
                        Changes the volume to given values, 0-100
  -i IP, --ip IP        Specify an IP address, defaults to 'localhost'
  -P PORT, --port PORT  Specify a port. Defaults to 6600