An implementation of an MPRIS D-Bus client
Project description
pympris2
An implementation of the MPRIS D-Bus Interface Specification using sdbus.
Example
import asyncio
from pympris2 import get_active_players, MPRISInterface
async def main() -> None:
player = await get_active_players()[0]
proxy = MPRISInterface.connect(player)
await proxy.play_pause()
print(await proxy.volume)
await proxy.volume.set_async(0.5)
# …
asyncio.run(main())
All methods and properties of the implemented interfaces are available in the proxy object.
There is also a CLI tool mprisctl available; just check --help.
Implementation Status
- org.mpris.MediaPlayer2 implemented
- org.mpris.MediaPlayer2.Player implemented
- org.mpris.MediaPlayer2.TrackList not implemented
- org.mpris.MediaPlayer2.Playlists not implemented
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pympris2-0.2.0.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pympris2-0.2.0.tar.gz.
File metadata
- Download URL: pympris2-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93d8a41cd1eed6489331b0133307082d737228e98b2630c2f01cb4b4674c1c5e
|
|
| MD5 |
ec02de9ae1374759745fee6d463bd49c
|
|
| BLAKE2b-256 |
f9e8a9fe822ff0950ace056fa244e5f90561e4be7af0f0a56f91c272f3abef6a
|
File details
Details for the file pympris2-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pympris2-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
babbeb49bc4033b883592fb7f7947067ffa4ff8bfcb8c58f19ea9b336c0d8f72
|
|
| MD5 |
9ad6761f70c742dcdf2e43e65a600291
|
|
| BLAKE2b-256 |
2e1a6d987ec2245757854c6d0276ed810a7c82bdbac5095aba1a3ad6cd196b84
|