Notification on instant messaging platforms
Project description
NotifyHub
Library to send you messages from your python scripts.
Setup
For contributors:
conda create -n notifyhub python==3.6.6 # works with RPi
conda activate notifyhub
pip install -r requirements.txt
For users:
cd .. # parent directory
pip install notifyhub
Usage
from notifyhub import send, watch
CONFIG_FP = '<CONFIG_FP>' # config .json file
send(message="hello there", config_fp=CONFIG_FP) # sends message 'hello there'
# watch program to check if it crashes/completes
@watch(config_fp=CONFIG_FP)
def main():
print('do something')
Telegram
Your telegram configuration file should look like:
{
"bot": "telegram",
"bot-token": "<BOT TOKEN>",
"chat-id": <CHAT ID>
}
Discord
Your discord configuration file should look like:
{
"bot": "discord",
"bot-token": "<BOT TOKEN>",
"chat-id": <CHANNEL ID>
}
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
notifyhub-0.0.5.tar.gz
(3.9 kB
view details)
File details
Details for the file notifyhub-0.0.5.tar.gz.
File metadata
- Download URL: notifyhub-0.0.5.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d841dc9745d7e05b5e3dd68ab85e1c1322018d46ec9dc918546146cb0296b27
|
|
| MD5 |
ab2f2a49be3ff5ec1a7f5bf174902cf3
|
|
| BLAKE2b-256 |
58f2a38a7442a99e7056bd3c68e9454d6d7fd0d47f760dcb57183375f3c8f293
|