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.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: devpi-discord-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7df1047b599bd627495ae05d5815195396619aeca4fa77aa6e3ceab7accf5e67
MD5 50aba0b7a98a4703a3b77a1efe6b4076
BLAKE2b-256 6ad6f5e6c93c978276f148ad37f3493e9bb19ddea031c857f6f1dba5737492df

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: devpi_discord-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d06e844a8963aa801121436a173c5089feaf670ff499aca96d9d8760de0bbe54
MD5 26bc645b41c2d65ac1eb9509e1eba4b9
BLAKE2b-256 50f8af1d78f1f01c27e68eed9f15c036bd7f05e822d25f25d1f5cf09b6aede96

See more details on using hashes here.

Provenance

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