python-mpd2 is a Python client library for the Music Player Daemon (MPD) protocol. It provides both synchronous and asynchronous interfaces for controlling MPD. Current stable version is 3.1.1, released in 2023. It is actively maintained with regular releases.
pip install python-mpd2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connect to a local MPD server and retrieve status.
Upgrade to 3.x and use `send_idle` instead of `idle`.
Always instantiate a fresh MPDClient after a disconnect.
Use `client.play(0)` or specify a song number.
Ensure MPD is running and listening on the expected address/port.
Reconnect by creating a new MPDClient and calling connect() again.
No dependency data recorded yet.