Mopidy-Notify


NameMopidy-Notify JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://github.com/phijor/mopidy-notify
SummaryMopidy extension for showing desktop notifications
upload_time2023-09-17 20:49:47
maintainer
docs_urlNone
authorPhilipp Joram
requires_python>=3.8
licenseApache License, Version 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ****************************
Mopidy-Notify
****************************

.. image:: https://img.shields.io/pypi/v/Mopidy-Notify
    :target: https://pypi.org/project/Mopidy-Notify/
    :alt: Latest PyPI version

.. image:: https://img.shields.io/github/actions/workflow/status/phijor/mopidy-notify/ci.yml?branch=main
    :target: https://github.com/phijor/mopidy-notify/actions
    :alt: CI build status

.. image:: https://img.shields.io/codecov/c/gh/phijor/mopidy-notify
    :target: https://codecov.io/gh/phijor/mopidy-notify
    :alt: Test coverage

Mopidy extension for showing desktop notifications on track change.


Installation
============

Install by running::

    python3 -m pip install Mopidy-Notify

See https://mopidy.com/ext/notify/ for alternative installation methods.


Configuration
=============

Before starting Mopidy, you must add configuration for
Mopidy-Notify to your Mopidy configuration file::

    [notify]
    enabled = true

The following configuration values are available:

:literal:`notify/max_icon_size`:
    Maximum icon dimensions (width/heigh) in pixels for which track images/album covers are fetched.
    For some tracks, images in multiple dimensions are available.
    Mopidy-Notify will try to use the largest image possible for a notification.
    Since some backends provide huge track images (as large as 3000x3000 pixels for Bandcamp MP3s), use this value to restrict which images are considered for display.
    If no track images are smaller than :literal:`max_icon_size`, the smallest image available will be used.

:literal:`notify/fallback_icon`:
    File path to an icon or the name of a default icon used as fallback if no track image/album cover is available for the currently playing track.

:literal:`notify/track_summary`:
    A `template string <https://docs.python.org/3/library/string.html#template-strings>`_ used to build a notification summary.
    See below for values substituted.

:literal:`notify/track_message`:
    Same as :literal:`track_summary`, but supplies the more detailed message content of a notification.

The following values are set by default::

    [notify]
    enabled = true
    max_icon_size = 200
    fallback_icon = notification-audio-play
    track_summary = ${track}
    track_message = ${artists} — ${album}


The following variables are substituted for properties of the currently playing track when encountered in an template string:

:literal:`$track`:
    Name of the currently playing track.
:literal:`$album`:
    The album in which this track is contained.
:literal:`$artists`, :literal:`$composers`, :literal:`$performers`:
    Comma separated list of artists/composers/performers for this track.
:literal:`$genre`:
    This track's genre.
:literal:`$time`:
    The current running time of this track, formatted `[HH:]MM:SS`.
    Hours are omitted of running time is below one hour.
:literal:`$date`:
    Release date.
:literal:`$bitrate`:
    Track bitrate in `kbit/s`.
:literal:`$comment`:
    Track comment.
:literal:`$musicbrainz_id`:
    Musicbrainz ID.

Project resources
=================

- `Source code <https://github.com/phijor/mopidy-notify>`_
- `Issue tracker <https://github.com/phijor/mopidy-notify/issues>`_
- `Changelog <https://github.com/phijor/mopidy-notify/blob/master/CHANGELOG.rst>`_


Credits
=======

- Original author: `Philipp Joram <https://github.com/phijor>`__
- Current maintainer: `Philipp Joram <https://github.com/phijor>`__
- `Contributors <https://github.com/phijor/mopidy-notify/graphs/contributors>`_

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/phijor/mopidy-notify",
    "name": "Mopidy-Notify",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Philipp Joram",
    "author_email": "mail@phijor.me",
    "download_url": "https://files.pythonhosted.org/packages/46/81/d932035a4b833742be35f6e31426d1cb44f7d2a19fc32fb8b53158ad8e61/Mopidy-Notify-0.2.1.tar.gz",
    "platform": null,
    "description": "****************************\nMopidy-Notify\n****************************\n\n.. image:: https://img.shields.io/pypi/v/Mopidy-Notify\n    :target: https://pypi.org/project/Mopidy-Notify/\n    :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/github/actions/workflow/status/phijor/mopidy-notify/ci.yml?branch=main\n    :target: https://github.com/phijor/mopidy-notify/actions\n    :alt: CI build status\n\n.. image:: https://img.shields.io/codecov/c/gh/phijor/mopidy-notify\n    :target: https://codecov.io/gh/phijor/mopidy-notify\n    :alt: Test coverage\n\nMopidy extension for showing desktop notifications on track change.\n\n\nInstallation\n============\n\nInstall by running::\n\n    python3 -m pip install Mopidy-Notify\n\nSee https://mopidy.com/ext/notify/ for alternative installation methods.\n\n\nConfiguration\n=============\n\nBefore starting Mopidy, you must add configuration for\nMopidy-Notify to your Mopidy configuration file::\n\n    [notify]\n    enabled = true\n\nThe following configuration values are available:\n\n:literal:`notify/max_icon_size`:\n    Maximum icon dimensions (width/heigh) in pixels for which track images/album covers are fetched.\n    For some tracks, images in multiple dimensions are available.\n    Mopidy-Notify will try to use the largest image possible for a notification.\n    Since some backends provide huge track images (as large as 3000x3000 pixels for Bandcamp MP3s), use this value to restrict which images are considered for display.\n    If no track images are smaller than :literal:`max_icon_size`, the smallest image available will be used.\n\n:literal:`notify/fallback_icon`:\n    File path to an icon or the name of a default icon used as fallback if no track image/album cover is available for the currently playing track.\n\n:literal:`notify/track_summary`:\n    A `template string <https://docs.python.org/3/library/string.html#template-strings>`_ used to build a notification summary.\n    See below for values substituted.\n\n:literal:`notify/track_message`:\n    Same as :literal:`track_summary`, but supplies the more detailed message content of a notification.\n\nThe following values are set by default::\n\n    [notify]\n    enabled = true\n    max_icon_size = 200\n    fallback_icon = notification-audio-play\n    track_summary = ${track}\n    track_message = ${artists} \u2014 ${album}\n\n\nThe following variables are substituted for properties of the currently playing track when encountered in an template string:\n\n:literal:`$track`:\n    Name of the currently playing track.\n:literal:`$album`:\n    The album in which this track is contained.\n:literal:`$artists`, :literal:`$composers`, :literal:`$performers`:\n    Comma separated list of artists/composers/performers for this track.\n:literal:`$genre`:\n    This track's genre.\n:literal:`$time`:\n    The current running time of this track, formatted `[HH:]MM:SS`.\n    Hours are omitted of running time is below one hour.\n:literal:`$date`:\n    Release date.\n:literal:`$bitrate`:\n    Track bitrate in `kbit/s`.\n:literal:`$comment`:\n    Track comment.\n:literal:`$musicbrainz_id`:\n    Musicbrainz ID.\n\nProject resources\n=================\n\n- `Source code <https://github.com/phijor/mopidy-notify>`_\n- `Issue tracker <https://github.com/phijor/mopidy-notify/issues>`_\n- `Changelog <https://github.com/phijor/mopidy-notify/blob/master/CHANGELOG.rst>`_\n\n\nCredits\n=======\n\n- Original author: `Philipp Joram <https://github.com/phijor>`__\n- Current maintainer: `Philipp Joram <https://github.com/phijor>`__\n- `Contributors <https://github.com/phijor/mopidy-notify/graphs/contributors>`_\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Mopidy extension for showing desktop notifications",
    "version": "0.2.1",
    "project_urls": {
        "Homepage": "https://github.com/phijor/mopidy-notify"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae2a56af1058c2f3e7a03a10028e7e844c9682152cefa6e04a77c3c1f6b8e980",
                "md5": "ebda4a68426b45cc531fbd49a7ac9a29",
                "sha256": "5a3913e98dd7588b207bb545e9d47980fbed94a20cef4d33b542f25d45b23421"
            },
            "downloads": -1,
            "filename": "Mopidy_Notify-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ebda4a68426b45cc531fbd49a7ac9a29",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 11783,
            "upload_time": "2023-09-17T20:49:46",
            "upload_time_iso_8601": "2023-09-17T20:49:46.169003Z",
            "url": "https://files.pythonhosted.org/packages/ae/2a/56af1058c2f3e7a03a10028e7e844c9682152cefa6e04a77c3c1f6b8e980/Mopidy_Notify-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4681d932035a4b833742be35f6e31426d1cb44f7d2a19fc32fb8b53158ad8e61",
                "md5": "d6a7db57b06b436a4dd1638c97fbbe33",
                "sha256": "f054f83b8934c04b1d1c0d6f25a396f546a627740bc8ee3b1f02f95dc494dcf7"
            },
            "downloads": -1,
            "filename": "Mopidy-Notify-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d6a7db57b06b436a4dd1638c97fbbe33",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 13512,
            "upload_time": "2023-09-17T20:49:47",
            "upload_time_iso_8601": "2023-09-17T20:49:47.320800Z",
            "url": "https://files.pythonhosted.org/packages/46/81/d932035a4b833742be35f6e31426d1cb44f7d2a19fc32fb8b53158ad8e61/Mopidy-Notify-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-17 20:49:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "phijor",
    "github_project": "mopidy-notify",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "mopidy-notify"
}
        
Elapsed time: 0.33441s