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
Metadata
Release files for pympris2 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pympris2-0.3.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pympris2-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / pympris2-0.3.1.tar.gz
| Download URL | pympris2-0.3.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7c9f4c6b4826d9d457690a4cd33ab83ceb7054cf7491c80418eb08464d8cb3d
|
|
BLAKE2b-256 checksum How to use checksums |
5025141e49cf52a011537eb7d6a88aafd8339b57608e47e2b3aa850267e268e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / pympris2-0.3.1-py3-none-any.whl
| Download URL | pympris2-0.3.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d37f02a286687701c142a4d3443cc0b5a10a841c3260450d79c4d5f9a2ec9352
|
|
BLAKE2b-256 checksum How to use checksums |
b16c4af196635ea1bf7831343e81a0771a9c12b9a93566bdaa927ef46a53b211
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|