Skip to main content

A type-hinted async python mpd client library.

Project description


A type-hinted async python mpd client library.


ampdup is an async/await based MPD library.

It is fully type-hinted and MPD responses are typed as well, so it is able to play nicely with mypy and autocompletion such as what is provided by jedi.


First a basic usage example. make() returns a connected client as a context manager that handles disconnection automatically.

async def main():
    async with MPDClient.make('localhost', 6600) as m:

The IdleClient class provides the idle() function. Since ampdup is async/await-based this loop can easily run concurrently with other operations.

async def observe_state():
    async with IdleClient.make('localhost', 6600) as i:
        while True:
            changed = await i.idle()


  • <input type="checkbox" disabled="" /> Support command lists.
  • <input type="checkbox" disabled="" /> Support connecting through Unix socket.
  • <input type="checkbox" disabled="" /> Support the more obscure MPD features such as partitions.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ampdup, version 0.12.0
Filename, size File type Python version Upload date Hashes
Filename, size ampdup-0.12.0-py3-none-any.whl (17.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ampdup-0.12.0.tar.gz (15.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page