Devpi plugin for sending Discord notifications
Project description
Installation
devpi-discord needs to be installed alongside devpi-server.
You can install it with:
pip install devpi-discord
For devpi-server there is no configuration needed, as it will automatically discover the plugin through calling hooks using the setuptools entry points mechanism.
Configuration
devpi-discord can trigger Discord notifications upon package upload.
devpi index /testuser/dev discord_hook=https://discord.com/api/webhooks/…
Environment Variables:
You can also pass environment variables to configure the plugin. Yes it can be more simplier but it’s less secure and flexible be aware of that
DISCORD_HOOK to adjust the Discord hook URL used. Defaults to the devpi discord_hook value above. (Note: discord_hook provided by devpi takes precedence. Setting both will default to the value specified in devpi)
Disable it !
By removing the index configuration the plugin will not send any notification anymore:
devpi index /testuser/dev discord_hook-=
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for devpi_discord-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d06e844a8963aa801121436a173c5089feaf670ff499aca96d9d8760de0bbe54 |
|
MD5 | 26bc645b41c2d65ac1eb9509e1eba4b9 |
|
BLAKE2b-256 | 50f8af1d78f1f01c27e68eed9f15c036bd7f05e822d25f25d1f5cf09b6aede96 |