Skip to main content

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>
}

Metadata

Release files for notifyhub 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notifyhub 0.0.5
File Size Uploaded Provenance Actions
notifyhub-0.0.5.tar.gz 3.9 kB Without provenance Details for notifyhub-0.0.5.tar.gz

Release files / notifyhub-0.0.5.tar.gz

Download URL notifyhub-0.0.5.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6d841dc9745d7e05b5e3dd68ab85e1c1322018d46ec9dc918546146cb0296b27
BLAKE2b-256 checksum
How to use checksums
58f2a38a7442a99e7056bd3c68e9454d6d7fd0d47f760dcb57183375f3c8f293
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for notifyhub 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page