Send notification when your website is down.
Project description
Down notifier
Usage
python -m down-notifier <config.json>
Example json config in "examples" folder.
from down_notifier import Checker, Site
from down_notifier.channel import TelegramChannel
channel = TelegramChannel(
name="channel_name",
message="{} - {}",
token="token",
chats=["chat_id_1", "chat_id_2"],
)
site = Site(
name="site_name",
url="http://example.com",
status_code=200,
timeout=60,
channels=[channel],
)
checker = Checker([site])
checker.start_loop()
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
down-notifier-0.1.1.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file down-notifier-0.1.1.tar.gz.
File metadata
- Download URL: down-notifier-0.1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.8.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
271d6447e6aa179bc9ff1431f68cecb3a78c747f11024943de63d62983b79dbd
|
|
| MD5 |
2a40d18c660d3f66e2267b882720ceb8
|
|
| BLAKE2b-256 |
eb879e2924a82cfb73e836fd6452c6862259ede012555da8da65c630065bdc46
|
File details
Details for the file down_notifier-0.1.1-py3-none-any.whl.
File metadata
- Download URL: down_notifier-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.8.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c4233d3d5ce85cff7b8a7873b572acf20159d9e1b1dae2ace379edaecb11fe3
|
|
| MD5 |
2e1e475d67ab8153a1dcf7466e143c6b
|
|
| BLAKE2b-256 |
0045526f13399ee091dbc519c18b4ca02a0c070fe1e1ebb2174f127cc9e95cb2
|