mpdnotify
Notifies when mpd's song changes.
Installation
It has been test on Debian 9.5, it shall work on any other Linux distribution with Python >= 3.2. Please let me now if it works on OSX.
PyPa
For now, mpdnotify is not a PyPa's package.
Manual
Requirements
notify-send- Python >= 3.2
- Pillow
- python-mpd2
Installation
git clone https://github.com/chuugar/mpdnotify.git
cd mpdnotify
pip3 install -r requirements.txt -e .
Usage
A few arguments can be passed to mpdnotify :
- -a / --appname : specifies the app name for notify-send.
- -c / --config : path to the configuration file.
- --host : mpd's address.
- -m / --musicdir : path to mpd's music library folder.
- -p / --port : mpd's server port.
- -o / --oneshot : send a notification and exit immediately.
All this arguments can be save in a configuration file, please see mpdnotifyrc.sample for further informations.
Once running, mpdnotify will wait for the next song to send a notification (unless -o / --oneshot has been passed).
Cover is used as notification icon if a file (cover/front/album).(png/jpg) is find in the same folder as the music file.
TODO
- Add a test suite.
- Allow user to change the notification format.
- If cover cannot be found as an image, look at the tags.
Metadata
Release files for mpdnotify 1.0
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 |
|---|---|---|---|---|
| mpdnotify-1.0.tar.gz | 4.9 kB | Without provenance | Details for mpdnotify-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpdnotify-1.0-py3-none-any.whl | Python 3 | none | any | Details for mpdnotify-1.0-py3-none-any.whl |
Total release size: 10.7 kB
Release files / mpdnotify-1.0.tar.gz
| Download URL | mpdnotify-1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1461b80cb4772640c25bc03b19977789523b5f918ae15588b8860e0409bef0e7
|
|
BLAKE2b-256 checksum How to use checksums |
535cbb77aa9aefe97274ec57c8215d119e41ccf39ebeeef0f5107bcc1e2c03fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3
|
Release files / mpdnotify-1.0-py3-none-any.whl
| Download URL | mpdnotify-1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d99d0d6d56403dc5e6ba7bd467c7d2f184c740800641269fbd05df670045cee
|
|
BLAKE2b-256 checksum How to use checksums |
71ba1141fd7bdbc0cf9650353cb4d06f469a559d9cf9938e0bb499112a33cc3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3
|
Security for mpdnotify 1.0
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.