Available commands¶
Get current available commands:
import musicpd
print(' '.join([cmd for cmd in musicpd.MPDClient()._commands.keys()]))
Below the commands list last updated for v0.9.1.
Querying MPD’s status¶
Protocol documentation: Querying MPD’s status
clearerror -> None
currentsong -> dict
idle -> list
status -> dict
stats -> dict
Playback Option¶
Protocol documentation: Playback Option
consume -> None
crossfade -> None
mixrampdb -> None
mixrampdelay -> None
random -> None
repeat -> None
setvol -> None
getvol -> dict
single -> None
replay_gain_mode -> None
replay_gain_status -> str
volume -> None
Controlling playback¶
Protocol documentation: Controlling playback
next -> None
pause -> None
play -> None
playid -> None
previous -> None
seek -> None
seekid -> None
seekcur -> None
stop -> None
The Queue¶
Protocol documentation: The Queue
add -> None
addid -> str
clear -> None
delete -> None
deleteid -> None
move -> None
moveid -> None
playlist -> list
playlistfind -> list[dict]
playlistid -> list[dict]
playlistinfo -> list[dict]
playlistsearch -> list[dict]
plchanges -> list[dict]
plchangesposid -> list[dict]
prio -> None
prioid -> None
rangeid -> None
shuffle -> None
swap -> None
swapid -> None
addtagid -> None
cleartagid -> None
Stored playlists¶
Protocol documentation: Stored playlists
listplaylist -> list
listplaylistinfo -> list[dict]
listplaylists -> dict
load -> None
playlistadd -> None
playlistclear -> None
playlistdelete -> None
playlistlength -> dict
playlistmove -> None
rename -> None
rm -> None
save -> None
The music database¶
Protocol documentation: The music database
albumart -> dict
count -> dict
getfingerprint -> dict
find -> list[dict]
findadd -> None
list -> list
listall -> list[dict]
listallinfo -> list[dict]
listfiles -> list[dict]
lsinfo -> list[dict]
readcomments -> dict
readpicture -> dict
search -> list[dict]
searchadd -> None
searchaddpl -> None
searchcount -> dict
update -> str
rescan -> str
Mounts and neighbors¶
Protocol documentation: Mounts and neighbors
mount -> None
unmount -> None
listmounts -> list[dict]
listneighbors -> list[dict]
Stickers¶
Protocol documentation: Stickers
sticker get -> str
sticker set -> None
sticker delete -> None
sticker list -> list
sticker find -> list[dict]
stickernames -> list
Connection settings¶
Protocol documentation: Connection settings
password -> None
ping -> None
binarylimit -> None
tagtypes -> list
tagtypes disable -> None
tagtypes enable -> None
tagtypes clear -> None
tagtypes all -> None
Partition Commands¶
Protocol documentation: Partition Commands
partition -> None
listpartitions -> list
newpartition -> None
delpartition -> None
moveoutput -> None
Audio output devices¶
Protocol documentation: Audio output devices
disableoutput -> None
enableoutput -> None
toggleoutput -> None
outputs -> list[dict]
outputset -> None
Reflection¶
Protocol documentation: Reflection
config -> dict
commands -> list
notcommands -> list
urlhandlers -> list
decoders -> list[dict]
Client to Client¶
Protocol documentation: Client to Client
subscribe -> None
unsubscribe -> None
channels -> list
readmessages -> list[dict]
sendmessage -> None