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.3.1.tar.gz
(4.0 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.3.1.tar.gz.
File metadata
- Download URL: pympris2-0.3.1.tar.gz
- Upload date:
- Size: 4.0 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 |
f7c9f4c6b4826d9d457690a4cd33ab83ceb7054cf7491c80418eb08464d8cb3d
|
|
| MD5 |
2b782459012f4073fad60be7677757c8
|
|
| BLAKE2b-256 |
5025141e49cf52a011537eb7d6a88aafd8339b57608e47e2b3aa850267e268e6
|
File details
Details for the file pympris2-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pympris2-0.3.1-py3-none-any.whl
- Upload date:
- Size: 5.1 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 |
d37f02a286687701c142a4d3443cc0b5a10a841c3260450d79c4d5f9a2ec9352
|
|
| MD5 |
69e7f1c7d5dfa0e39309579aa25c0835
|
|
| BLAKE2b-256 |
b16c4af196635ea1bf7831343e81a0771a9c12b9a93566bdaa927ef46a53b211
|