mpris-api


Namempris-api JSON
Version 1.2.1 PyPI version JSON
download
home_pageNone
SummaryMake your multimedia app discoverable by linux desktop.
upload_time2024-05-16 12:41:14
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT
keywords mpris player multimedia linux
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI pyversions](https://img.shields.io/pypi/pyversions/mpris-api.svg)](https://pypi.python.org/pypi/mpris-api)
[![PyPI version shields.io](https://img.shields.io/pypi/v/mpris-api.svg)](https://pypi.python.org/pypi/apris-api)
[![PyPI license](https://img.shields.io/pypi/l/mpris-api.svg)](https://pypi.python.org/pypi/mpris-api)
[![Downloads](https://static.pepy.tech/badge/mpris-api)](https://pepy.tech/project/mpris-api)

# MPRIS API
---
Make your multimedia app discoverable by linux desktop.

## Desciption

This package provides an implementation of MPRIS DBus interface.

MPRIS standard: [MPRIS D-Bus Interface Specification](https://specifications.freedesktop.org/mpris-spec/latest/)

## Usage

Minimal:
```python
from mpris_api.MprisService import MprisService
from mpris_api.adapter.IMprisAdapterRoot import IMprisAdapterRoot
from mpris_api.adapter.IMprisAdapterPlayer import IMprisAdapterPlayer

class SampleMprisAdapterRoot(IMprisAdapterRoot):
    pass  # TODO: Implement interface methods here!

class SampleMprisAdapterPlayer(IMprisAdapterPlayer):
    pass  # TODO: Implement interface methods here!

with MprisService(
    name='my_app_name',
    adapterRoot=SampleMprisAdapterRoot(),
    adapterPlayer=SampleMprisAdapterPlayer(),
) as mprisService:
    mprisService.awaitStop()
```

Full (including tracklists and playlists support):
```python
from mpris_api.MprisService import MprisService
from mpris_api.adapter.IMprisAdapterRoot import IMprisAdapterRoot
from mpris_api.adapter.IMprisAdapterPlayer import IMprisAdapterPlayer
from mpris_api.adapter.IMprisAdapterTrackList import IMprisAdapterTrackList
from mpris_api.adapter.IMprisAdapterPlayLists import IMprisAdapterPlayLists

class SampleMprisAdapterRoot(IMprisAdapterRoot):
    pass  # TODO: Implement interface methods here!

class SampleMprisAdapterPlayer(IMprisAdapterPlayer):
    pass  # TODO: Implement interface methods here!

class SampleMprisAdapterTrackList(IMprisAdapterTrackList):
    pass  # TODO: Implement interface methods here!

class SampleMprisAdapterPlayLists(IMprisAdapterPlayLists):
    pass  # TODO: Implement interface methods here!

with MprisService(
    name='my_app_name',
    adapterRoot=SampleMprisAdapterRoot(),
    adapterPlayer=SampleMprisAdapterPlayer(),
    adapterTrackList=SampleMprisAdapterTrackList(),
    adapterPlayLists=SampleMprisAdapterPlayLists(),
) as mprisService:
    mprisService.awaitStop()
```

## License
MIT

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mpris-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "mpris, player, multimedia, linux",
    "author": null,
    "author_email": "\"P.J. Grochowski\" <pawel.grochowski.dev@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/cb/8f/f0875de70c32db4107694bcf3fd8a86a8f580491cc92b5a76e0a9deb9169/mpris-api-1.2.1.tar.gz",
    "platform": null,
    "description": "[![PyPI pyversions](https://img.shields.io/pypi/pyversions/mpris-api.svg)](https://pypi.python.org/pypi/mpris-api)\n[![PyPI version shields.io](https://img.shields.io/pypi/v/mpris-api.svg)](https://pypi.python.org/pypi/apris-api)\n[![PyPI license](https://img.shields.io/pypi/l/mpris-api.svg)](https://pypi.python.org/pypi/mpris-api)\n[![Downloads](https://static.pepy.tech/badge/mpris-api)](https://pepy.tech/project/mpris-api)\n\n# MPRIS API\n---\nMake your multimedia app discoverable by linux desktop.\n\n## Desciption\n\nThis package provides an implementation of MPRIS DBus interface.\n\nMPRIS standard: [MPRIS D-Bus Interface Specification](https://specifications.freedesktop.org/mpris-spec/latest/)\n\n## Usage\n\nMinimal:\n```python\nfrom mpris_api.MprisService import MprisService\nfrom mpris_api.adapter.IMprisAdapterRoot import IMprisAdapterRoot\nfrom mpris_api.adapter.IMprisAdapterPlayer import IMprisAdapterPlayer\n\nclass SampleMprisAdapterRoot(IMprisAdapterRoot):\n    pass  # TODO: Implement interface methods here!\n\nclass SampleMprisAdapterPlayer(IMprisAdapterPlayer):\n    pass  # TODO: Implement interface methods here!\n\nwith MprisService(\n    name='my_app_name',\n    adapterRoot=SampleMprisAdapterRoot(),\n    adapterPlayer=SampleMprisAdapterPlayer(),\n) as mprisService:\n    mprisService.awaitStop()\n```\n\nFull (including tracklists and playlists support):\n```python\nfrom mpris_api.MprisService import MprisService\nfrom mpris_api.adapter.IMprisAdapterRoot import IMprisAdapterRoot\nfrom mpris_api.adapter.IMprisAdapterPlayer import IMprisAdapterPlayer\nfrom mpris_api.adapter.IMprisAdapterTrackList import IMprisAdapterTrackList\nfrom mpris_api.adapter.IMprisAdapterPlayLists import IMprisAdapterPlayLists\n\nclass SampleMprisAdapterRoot(IMprisAdapterRoot):\n    pass  # TODO: Implement interface methods here!\n\nclass SampleMprisAdapterPlayer(IMprisAdapterPlayer):\n    pass  # TODO: Implement interface methods here!\n\nclass SampleMprisAdapterTrackList(IMprisAdapterTrackList):\n    pass  # TODO: Implement interface methods here!\n\nclass SampleMprisAdapterPlayLists(IMprisAdapterPlayLists):\n    pass  # TODO: Implement interface methods here!\n\nwith MprisService(\n    name='my_app_name',\n    adapterRoot=SampleMprisAdapterRoot(),\n    adapterPlayer=SampleMprisAdapterPlayer(),\n    adapterTrackList=SampleMprisAdapterTrackList(),\n    adapterPlayLists=SampleMprisAdapterPlayLists(),\n) as mprisService:\n    mprisService.awaitStop()\n```\n\n## License\nMIT\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Make your multimedia app discoverable by linux desktop.",
    "version": "1.2.1",
    "project_urls": {
        "Repository": "https://bitbucket.org/massultidev/mpris-api"
    },
    "split_keywords": [
        "mpris",
        " player",
        " multimedia",
        " linux"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb8ff0875de70c32db4107694bcf3fd8a86a8f580491cc92b5a76e0a9deb9169",
                "md5": "2a8bd61c8785ee56c6409cda487787c3",
                "sha256": "e50be95f69cefa69ee51c45d2e46fe07ab706e442ed26835274fdb2d85ce6e71"
            },
            "downloads": -1,
            "filename": "mpris-api-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2a8bd61c8785ee56c6409cda487787c3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 14231,
            "upload_time": "2024-05-16T12:41:14",
            "upload_time_iso_8601": "2024-05-16T12:41:14.279016Z",
            "url": "https://files.pythonhosted.org/packages/cb/8f/f0875de70c32db4107694bcf3fd8a86a8f580491cc92b5a76e0a9deb9169/mpris-api-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-16 12:41:14",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "codeberg": false,
    "bitbucket_user": "massultidev",
    "bitbucket_project": "mpris-api",
    "lcname": "mpris-api"
}
        
Elapsed time: 0.49298s