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 | Provenance | Actions |
|---|---|---|---|---|
| pympris2-0.3.1.tar.gz | 4.0 kB | Without provenance | Details for pympris2-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pympris2-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for pympris2-0.3.1-py3-none-any.whl |
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}
|
Security for pympris2 0.3.1
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.