A list of supported commands, their arguments (as MPD currently understands
them), and the functions used to parse their responses can be found in
doc/commands.txt. See the MPD protocol documentation for more
details.

Command lists are also supported using command_list_ok_begin() and
command_list_end()

client.command_list_ok_begin() # start a command list
client.update() # insert the update command into the list
client.status() # insert the status command into the list
results = client.command_list_end() # results will be a list with the results

Commands may also return iterators instead of lists if iterate is set to
True:

client.iterate = True
for song in client.playlistinfo():
print song['file']

Each command have a send_<CMD> and a fetch_<CMD> variant, which allows to
send a MPD command and then fetch the result later.
This is useful for the idle command:

Copyright (C) 2008-2010 J. Alexander Treuman <jat@spatialrift.net>
Copyright (C) 2012-2014 Kaliko Jack <kaliko@azylum.org>
python-musicpd is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
python-musicpd is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with python-musicpd. If not, see <http://www.gnu.org/licenses/>.