Skip to main content

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

Project details


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.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pympris2-0.3.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pympris2-0.3.0.tar.gz.

File metadata

  • Download URL: pympris2-0.3.0.tar.gz
  • Upload date:
  • Size: 3.9 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

Hashes for pympris2-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c1475bc70d4ae7e6b3b859dec23ecce86a30de10a496d3265507fc26f5e15658
MD5 5fa387e60d1421bcf19765318e78a7e9
BLAKE2b-256 ac6c7f25c4ed17e854370a0e1b38e757f44f058156ee929f5b2901d918581813

See more details on using hashes here.

File details

Details for the file pympris2-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pympris2-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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

Hashes for pympris2-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b73b8917ba049975e65e05d815595f20d47533263d306ce4ce22ac383765a835
MD5 8eaa6b1aad88fc838f5e16a99167d530
BLAKE2b-256 4adc556c41e56fa0583e67970f7ba6a5688dce777f85fcc2bf54baee23c83da2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page