Skip to main content

gbp-webhook-playsound

A gbp-webhook plugin to play a sound on your desktop on events. It currently reacts only to the postpull event (see gbp-notifications).

Installation

gbp-webhook-playsound requires gbp-webhook (which requires gbpcli). You should install gbp-webhook-playsound in the same (virtual) environment that you installed those two. For example:

$ pip install --user gbp-webhook-playsound

or

$ pipx inject gbpcli gbp-webhook-playsound

Usage

You should ensure that gbp-notifications is installed on the Gentoo Build Publisher server for which you want to subscribe and the webhook receiver is configured to receive postpull events:

On the server

# /etc/gbp-notifications.toml

[recipients]
laptop = { webhook = "https://laptop:5000/webhook|X-Pre-Shared-Key=foobar" }

[subscriptions]
babette = { postpull = ["laptop"] }

As gbp-webhook-playsound is a plugin for gbp-webhook, it is picked up automatically when that application is run (see the README for details). In order to be picked up it requires a restart of the gbp-webhook service. In systemd this means

$ systemctl restart --user gbp-webhook

Environment variables

Like gbp-webhook, gbp-webhook-playsound can be configured via environment variables. If you are using the (preferred) systemd integration, then they will be defined in ~/.config/gbp-webhook.conf. The following environment variables are recognized:

  • GBP_WEBHOOK_PLAYSOUND_POSTPULL: If provided, uses the sound file in this variable to play instead of the default sound.
  • GBP_WEBHOOK_PLAYSOUND_PLAYER: The name/path to use to play the sound file. The default is "pw-play".

Audio Attribution

This project uses the "Level Up" audio file from Pixabay. The audio file is licensed under the Pixabay Content License, which allows for free use without attribution, but we still want to give credit to the creator.

Metadata

Release files for gbp-webhook-playsound 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gbp-webhook-playsound 1.0.2
File Size Uploaded Provenance Actions
gbp_webhook_playsound-1.0.2.tar.gz 64.5 kB Without provenance Details for gbp_webhook_playsound-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gbp-webhook-playsound 1.0.2
File Interpreter ABI Platform Actions
gbp_webhook_playsound-1.0.2-py3-none-any.whl Python 3 none any Details for gbp_webhook_playsound-1.0.2-py3-none-any.whl

Total release size: 126.8 kB

Release files / gbp_webhook_playsound-1.0.2.tar.gz

Download URL gbp_webhook_playsound-1.0.2.tar.gz
Size 64.5 kB
Tags Source
SHA-256 checksum
How to use checksums
29369708c50f2896000aacae0757065cda55bd5ffd8eccff3d0168a017637c0b
BLAKE2b-256 checksum
How to use checksums
3174b5535f5900cddc5dbe1c99f489b716e25933635a80626201c555434cd52d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / gbp_webhook_playsound-1.0.2-py3-none-any.whl

Download URL gbp_webhook_playsound-1.0.2-py3-none-any.whl
Size 62.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea8474a6694517d8654775641a68bcbd8fb8b993e12cd13da8be10e7521c6d97
BLAKE2b-256 checksum
How to use checksums
efdfe14b3f3f10c983e888b2ef7575cb3307f5384be09bb3d093c9ddf6cb14b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for gbp-webhook-playsound 1.0.2

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.

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