Skip to main content

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

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)

Source distribution for pympris2 0.3.1
File Size Uploaded
pympris2-0.3.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pympris2 0.3.1
File Interpreter ABI Platform
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}

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

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