Skip to main content

ampdup

A type-hinted async python mpd client library.

Summary

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.

Examples

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:
        await m.play()

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()
            handle_changes(changed)

Todo

  • Support command lists.
  • Support connecting through Unix socket.
  • Support the more obscure MPD features such as partitions.

Metadata

Release files for ampdup 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ampdup 0.12.0
File Size Uploaded Provenance
ampdup-0.12.0.tar.gz 15.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ampdup 0.12.0
File Interpreter ABI Platform
ampdup-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / ampdup-0.12.0.tar.gz

Download URL ampdup-0.12.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
276d11e4a88248065479e17164a2f396acb1a3360764b83f901273357bc19a83
BLAKE2b-256 checksum
How to use checksums
bbddd8cec0015ff9a51b567494c27fd37ae683be13755b0d4f48d5577f042d76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.9.14-arch1-1

Release files / ampdup-0.12.0-py3-none-any.whl

Download URL ampdup-0.12.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4e04fe3ec7820627cc4a2c90faaabc8f6e4b83e1cd75ca431ae0cbb03efaedc
BLAKE2b-256 checksum
How to use checksums
df302ee6f3569d89fc1453eef0f642ab9d1a096be88295eb289eb209ed8daa7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.9.14-arch1-1

Security for ampdup 0.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page