🛠️ Installation
From PyPI:
pip install tp-sendnotify
From Source:
git clone https://github.com/TPCyberSec/TP-sendNotify.git --branch <Branch/Tag>
cd TP-sendNotify
python -m build
python -m pip install dist/tp_sendNotify-<version>-py3-none-any.whl
Basic Usage
The default configuration file created at ~/TPCS-ENV/TP-sendNotify/sendNotify.json has the following content:
{
"Discord": {
"<BOT_NAME>": {
"WEBHOOK-URL": "https://discord.com/api/webhooks/<WEBHOOK_ID>/<WEBHOOK_TOKEN>"
},
...
},
"Telegram": {
"<BOT_NAME>": {
"BOT-TOKEN": "<BOT_TOKEN>",
"CHANNEL-USERNAME": "<CHANNEL_USERNAME>"
},
...
},
"Slack": {
"<BOT_NAME>": {
"WEBHOOK-URL": "https://hooks.slack.com/services/<WORKSPACE_ID>/<CHANNEL_ID>/<TOKEN>"
},
...
}
}
toDiscord(bot_name, message, SidebarColor=0xcc0500, ConfigFile=None)
Sending message notification to Discord
import TP_sendNotify
TP_sendNotify.toDiscord("<BOT_NAME>", "This message notification has been sent to the Discord using TP-sendNotify")
toTelegram(bot_name, message, MessageFormat=None, ConfigFile=None)
Sending message notification to Telegram
import TP_sendNotify
TP_sendNotify.toTelegram("<BOT_NAME>", "This message notification has been sent to the Telegram using TP-sendNotify")
toSlack(bot_name, message, ConfigFile=None)
Sending message notification to Slack
import TP_sendNotify
TP_sendNotify.toSlack("<BOT_NAME>", "This message notification has been sent to the Slack using TP-sendNotify")
📝 CHANGELOG
TP-sendNotify v2026.3.21
- Initial release of TP-sendNotify. This version includes the basic functionality to send notifications to Discord, Telegram, and Slack using a configuration file.
Metadata
Release files for tp-sendnotify 2026.3.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tp_sendnotify-2026.3.21.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tp_sendnotify-2026.3.21-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / tp_sendnotify-2026.3.21.tar.gz
| Download URL | tp_sendnotify-2026.3.21.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4548564b83c2ab45ac03e69035ce265501b070456798457efe87e036bce639cc
|
|
BLAKE2b-256 checksum How to use checksums |
ad0f0dc680ce3cd8058558a63a8e3fc5fbdbc2fffe6ab380aecec4f204e3e772
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.10
|
Release files / tp_sendnotify-2026.3.21-py3-none-any.whl
| Download URL | tp_sendnotify-2026.3.21-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b73cc2b126ceb47e5a39e29a339642d0a9bef94c24f67e7ad9ed9ad104b0c93
|
|
BLAKE2b-256 checksum How to use checksums |
75b0a7c38b47c252c65638d2d978a20a87121e1b0d5b4a3f4804d836d6263c30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.10
|