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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file devpi-discord-0.0.2.tar.gz.

File metadata

  • Download URL: devpi-discord-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.11.4 keyring/23.6.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.0 rfc3986/1.5.0 tqdm/4.64.0 urllib3/1.26.9 CPython/3.10.4

File hashes

Hashes for devpi-discord-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2c793f43fa64c75f89392d0ad6f8d67e84d6430ddb2714568695ba826c179398
MD5 7f763815968fdd88ddd4d3f9c19f01f6
BLAKE2b-256 25ef000918201f55aac32a7322b3347f795c8ee327f117fadc2de14c9889f496

See more details on using hashes here.

File details

Details for the file devpi_discord-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: devpi_discord-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.11.4 keyring/23.6.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.0 rfc3986/1.5.0 tqdm/4.64.0 urllib3/1.26.9 CPython/3.10.4

File hashes

Hashes for devpi_discord-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a07ab6246d77bcadea9ce9ce71bd4fdd6a96272c82c14e0ba60c0897e3e75212
MD5 6ed17fd980d817c345a1e1626139c70e
BLAKE2b-256 8cfa813d558d9888b55546402b6969bde635612a2b8bf53724a9385f8ea21419

See more details on using hashes here.

Supported by

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