Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devpi-discord-0.0.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

devpi_discord-0.0.2-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page