MPD client extension for Flask.
- Python 2.7 (might work with other versions, but was developed with this)
- Flask
- python-flask in Debian.
- python-mpd
- python-mpd in Debian.
Clone this repository and install as follows:
python setup.py install --user
The following configuration options are recognised:
MPD_HOST: The IP address or hostname of your MPD instanceMPD_PORT: The port that your MPD instance is listening onMPD_PASS: The password required to connect to your MPD instance.
These configuration options should be located in your Flask app configuration.
import flask
from flask.ext.mpd import MPD
app = flask.Flask(__name__)
app.config.from_pyfile(...)
mpd = MPD(app)- Ability to connect to password protected MPD instances.