4 from mpdaio.client import MPDClient
7 logging.basicConfig(level=logging.INFO, format='%(levelname)-8s %(message)s')
8 logging.getLogger("asyncio").setLevel(logging.WARNING)
9 # debug level level will show where defaults settings come from
10 log = logging.getLogger('mpdaio.client')
11 log.setLevel(logging.DEBUG)
15 # Use defaults to access MPD server
18 # Make an initial connection to MPD server
19 # The connection is kept open an reused for later commands
22 # Each task gathered here will run with it's own connection
23 await asyncio.gather(...)
25 # Closes all connections to MPD server
29 if __name__ == '__main__':