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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a07ab6246d77bcadea9ce9ce71bd4fdd6a96272c82c14e0ba60c0897e3e75212 |
|
MD5 | 6ed17fd980d817c345a1e1626139c70e |
|
BLAKE2b-256 | 8cfa813d558d9888b55546402b6969bde635612a2b8bf53724a9385f8ea21419 |